Skip to content

Commit f90a890

Browse files
committed
include objectmeta in crd
1 parent c9c1252 commit f90a890

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TAG_WITHOUT_PREFIX := $(shell echo $(TAG) | sed s/^v//)
1212
IMG ?= quay.io/evryfs/github-actions-runner-operator:$(TAG)
1313
GHCR_IMG ?= ghcr.io/evryfs/github-actions-runner-operator:${TAG}
1414
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
15-
CRD_OPTIONS ?= "crd:trivialVersions=true"
15+
CRD_OPTIONS ?= "crd:trivialVersions=true,generateEmbeddedObjectMeta=true"
1616

1717
# Default bundle image tag
1818
BUNDLE_IMG ?= quay.io/evryfs/github-actions-runner-operator-bundle:$(TAG)

config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ spec:
7676
properties:
7777
metadata:
7878
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
79+
properties:
80+
annotations:
81+
additionalProperties:
82+
type: string
83+
type: object
84+
finalizers:
85+
items:
86+
type: string
87+
type: array
88+
labels:
89+
additionalProperties:
90+
type: string
91+
type: object
92+
name:
93+
type: string
94+
namespace:
95+
type: string
7996
type: object
8097
spec:
8198
description: 'Specification of the desired behavior of the pod.
@@ -5630,6 +5647,23 @@ spec:
56305647
that will be copied into the PVC when creating
56315648
it. No other fields are allowed and will be
56325649
rejected during validation.
5650+
properties:
5651+
annotations:
5652+
additionalProperties:
5653+
type: string
5654+
type: object
5655+
finalizers:
5656+
items:
5657+
type: string
5658+
type: array
5659+
labels:
5660+
additionalProperties:
5661+
type: string
5662+
type: object
5663+
name:
5664+
type: string
5665+
namespace:
5666+
type: string
56335667
type: object
56345668
spec:
56355669
description: The specification for the PersistentVolumeClaim.

0 commit comments

Comments
 (0)