Skip to content

Commit dd932dc

Browse files
committed
fix: remove deprecated commonLabels
1 parent 11f9435 commit dd932dc

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

api/krusty/testdata/localize/remote/kustomization.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ resources:
55
- https://github.com/kubernetes-sigs/kustomize//api/krusty/testdata/localize/simple?submodules=0&ref=kustomize/v4.5.7&timeout=300
66
- hpa.yaml
77

8-
commonLabels:
9-
purpose: remoteReference
8+
labels:
9+
- includeSelectors: true
10+
pairs:
11+
purpose: remoteReference

examples/helloWorld/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ defining a new name prefix, and some different labels.
143143
```
144144
cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml
145145
namePrefix: staging-
146-
commonLabels:
147-
variant: staging
148-
org: acmeCorporation
146+
labels:
147+
- includeSelectors: true
148+
pairs:
149+
variant: staging
150+
org: acmeCorporation
149151
commonAnnotations:
150152
note: Hello, I am staging!
151153
resources:
@@ -184,9 +186,11 @@ with a different name prefix and labels.
184186
```
185187
cat <<EOF >$OVERLAYS/production/kustomization.yaml
186188
namePrefix: production-
187-
commonLabels:
188-
variant: production
189-
org: acmeCorporation
189+
labels:
190+
- includeSelectors: true
191+
pairs:
192+
variant: production
193+
org: acmeCorporation
190194
commonAnnotations:
191195
note: Hello, I am production!
192196
resources:

examples/helloWorld/kustomization.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ metadata:
55

66
# Example configuration for the webserver
77
# at https://github.com/monopole/hello
8-
commonLabels:
9-
app: hello
8+
labels:
9+
- includeSelectors: true
10+
pairs:
11+
app: hello
1012

1113
resources:
1214
- deployment.yaml

examples/transformerconfigs/crd/kustomization.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ resources:
33

44
namePrefix: test-
55

6-
commonLabels:
7-
foo: bar
6+
labels:
7+
- includeSelectors: true
8+
pairs:
9+
foo: bar
810

911
vars:
1012
- name: BEE_ACTION

0 commit comments

Comments
 (0)