File tree Expand file tree Collapse file tree 6 files changed +7
-9
lines changed
cronjob-tutorial/testdata/project/config
multiversion-tutorial/testdata/project/config Expand file tree Collapse file tree 6 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resources:
5
5
- bases/batch.tutorial.kubebuilder.io_cronjobs.yaml
6
6
# +kubebuilder:scaffold:kustomizeresource
7
7
8
- patches :
8
+ patchesStrategicMerge :
9
9
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
10
10
# patches here are for enabling the conversion webhook for each CRD
11
11
# - patches/webhook_in_cronjobs.yaml
Original file line number Diff line number Diff line change 21
21
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
22
22
- ../certmanager
23
23
24
- patches :
24
+ patchesStrategicMerge :
25
25
- manager_image_patch.yaml
26
26
# Protect the /metrics endpoint by putting it behind auth.
27
27
# Only one of manager_auth_proxy_patch.yaml and
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ resources:
5
5
- bases/batch.tutorial.kubebuilder.io_cronjobs.yaml
6
6
# +kubebuilder:scaffold:kustomizeresource
7
7
8
- patches :
8
+ patchesStrategicMerge :
9
9
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
10
10
# patches here are for enabling the conversion webhook for each CRD
11
11
- patches/webhook_in_cronjobs.yaml
12
12
# +kubebuilder:scaffold:kustomizepatch
13
13
14
14
# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix.
15
15
# patches here are for enabling the CA injection for each CRD
16
- - patches/cainjection_in_cronjobs.yaml
16
+ # - patches/cainjection_in_cronjobs.yaml
17
17
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
18
18
19
19
# the following config is for teaching kustomize how to do kustomization for CRDs.
Original file line number Diff line number Diff line change 21
21
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
22
22
- ../certmanager
23
23
24
- patches :
24
+ patchesStrategicMerge :
25
25
- manager_image_patch.yaml
26
26
# Protect the /metrics endpoint by putting it behind auth.
27
27
# Only one of manager_auth_proxy_patch.yaml and
Original file line number Diff line number Diff line change @@ -71,11 +71,10 @@ run: generate fmt vet manifests
71
71
72
72
# Install CRDs into a cluster
73
73
install: manifests
74
- kubectl apply -f config/crd/bases
74
+ kustomize build config/crd | kubectl apply -f -
75
75
76
76
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
77
77
deploy: manifests
78
- kubectl apply -f config/crd/bases
79
78
cd config/manager && kustomize edit set image controller=${IMG}
80
79
kustomize build config/default | kubectl apply -f -
81
80
Original file line number Diff line number Diff line change @@ -27,11 +27,10 @@ run: generate fmt vet manifests
27
27
28
28
# Install CRDs into a cluster
29
29
install : manifests
30
- kubectl apply -f config/crd/bases
30
+ kustomize build config/crd | kubectl apply -f -
31
31
32
32
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
33
33
deploy : manifests
34
- kubectl apply -f config/crd/bases
35
34
cd config/manager && kustomize edit set image controller=${IMG}
36
35
kustomize build config/default | kubectl apply -f -
37
36
You can’t perform that action at this time.
0 commit comments