Skip to content

Commit 97bdd01

Browse files
authored
Merge pull request #200 from cybozu-go/update-deprecated-fields
Update deprecated kustomize fields
2 parents 0fc3e4d + 4146046 commit 97bdd01

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

config/agent/kustomization.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ images:
44
- name: ghcr.io/cybozu-go/meows-controller
55
newTag: 0.20.1
66

7-
commonLabels:
8-
app.kubernetes.io/name: meows
9-
app.kubernetes.io/component: slack-agent
7+
labels:
8+
- includeSelectors: true
9+
pairs:
10+
app.kubernetes.io/name: meows
11+
app.kubernetes.io/component: slack-agent
1012

1113
resources:
1214
- manifests.yaml

config/controller/kustomization.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ images:
66

77
namePrefix: meows-
88

9-
commonLabels:
10-
app.kubernetes.io/name: meows
11-
app.kubernetes.io/component: controller
9+
labels:
10+
- includeSelectors: true
11+
pairs:
12+
app.kubernetes.io/name: meows
13+
app.kubernetes.io/component: controller
1214

1315
resources:
1416
- certificate.yaml
@@ -24,8 +26,8 @@ resources:
2426
configurations:
2527
- kustomizeconfig.yaml
2628

27-
patchesStrategicMerge:
28-
- webhook_patch.yaml
29+
patches:
30+
- path: webhook_patch.yaml
2931

3032
# the following config is for teaching kustomize how to do var substitution
3133
vars:

config/crd/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ resources:
55
- bases/meows.cybozu.com_runnerpools.yaml
66
#+kubebuilder:scaffold:crdkustomizeresource
77

8-
patchesStrategicMerge:
8+
patches:
99
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1010
# patches here are for enabling the conversion webhook for each CRD
1111
# - patches/webhook_in_runnerpools.yaml
1212
#+kubebuilder:scaffold:crdkustomizewebhookpatch
1313

1414
# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix.
1515
# patches here are for enabling the CA injection for each CRD
16-
- patches/cainjection_in_runnerpools.yaml
16+
- path: patches/cainjection_in_runnerpools.yaml
1717
#+kubebuilder:scaffold:crdkustomizecainjectionpatch
1818

1919
# the following config is for teaching kustomize how to do kustomization for CRDs.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
bases:
1+
resources:
22
- ../../../config/controller
33

4-
patchesStrategicMerge:
5-
- patch.yaml
4+
patches:
5+
- path: patch.yaml
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
bases:
1+
resources:
22
- ../../../config/agent
33

4-
patchesStrategicMerge:
5-
- patch.yaml
4+
patches:
5+
- path: patch.yaml

0 commit comments

Comments
 (0)