Skip to content

Commit b06fb25

Browse files
authored
Allow setting metadata on podTemplate (#52)
1 parent 272eaad commit b06fb25

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
@@ -40,7 +40,7 @@ help: ## Display this help.
4040

4141
.PHONY: manifests
4242
manifests: ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
43-
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
43+
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:generateEmbeddedObjectMeta=true webhook paths="./..." output:crd:artifacts:config=config/crd/bases
4444

4545
.PHONY: generate
4646
generate: ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

config/crd/bases/monitoring.appuio.io_schedulercanaries.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,23 @@ spec:
6868
description: |-
6969
Standard object's metadata.
7070
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
71+
properties:
72+
annotations:
73+
additionalProperties:
74+
type: string
75+
type: object
76+
finalizers:
77+
items:
78+
type: string
79+
type: array
80+
labels:
81+
additionalProperties:
82+
type: string
83+
type: object
84+
name:
85+
type: string
86+
namespace:
87+
type: string
7188
type: object
7289
spec:
7390
description: |-
@@ -6769,6 +6786,23 @@ spec:
67696786
May contain labels and annotations that will be copied into the PVC
67706787
when creating it. No other fields are allowed and will be rejected during
67716788
validation.
6789+
properties:
6790+
annotations:
6791+
additionalProperties:
6792+
type: string
6793+
type: object
6794+
finalizers:
6795+
items:
6796+
type: string
6797+
type: array
6798+
labels:
6799+
additionalProperties:
6800+
type: string
6801+
type: object
6802+
name:
6803+
type: string
6804+
namespace:
6805+
type: string
67726806
type: object
67736807
spec:
67746808
description: |-

0 commit comments

Comments
 (0)