Skip to content

Commit 8c57c1e

Browse files
committed
Some kustomization field renaming.
1 parent 2b764f2 commit 8c57c1e

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

demos/helloWorld.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ defining a new name prefix, and some different labels.
133133
<!-- @makeStagingKustomization @test -->
134134
```
135135
cat <<'EOF' >$OVERLAYS/staging/kustomize.yaml
136-
kustomizationName: makes-staging-hello
137136
namePrefix: staging-
138-
objectLabels:
137+
labelsToAdd:
139138
instance: staging
140139
org: acmeCorporation
141-
objectAnnotations:
140+
annotationsToAdd:
142141
note: Hello, I am staging!
143142
bases:
144143
- ../../base
@@ -175,12 +174,11 @@ with a different name prefix and labels.
175174
<!-- @makeProductionKustomization @test -->
176175
```
177176
cat <<EOF >$OVERLAYS/production/kustomize.yaml
178-
kustomizationName: makes-production-tuthello
179177
namePrefix: production-
180-
objectLabels:
178+
labelsToAdd:
181179
instance: production
182180
org: acmeCorporation
183-
objectAnnotations:
181+
annotationsToAdd:
184182
note: Hello, I am production!
185183
bases:
186184
- ../../base

demos/mySql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ selector.
131131
`kustomize` does not have `set label` command to add
132132
label, but we can edit `kustomize.yaml` file under
133133
`prod` directory and add the production labels under
134-
`objectLabels` fields as highlighted below.
134+
`labelsToAdd` fields as highlighted below.
135135
136136
<!-- @customizeLabels @test -->
137137
```

demos/springboot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ cat kustomize.yaml
156156
157157
> ```
158158
> namePrefix: prod-
159-
> objectAnnotations:
159+
> annotationsToAdd:
160160
> note: This is a example annotation
161161
> ```
162162
@@ -206,7 +206,7 @@ selector.
206206
`kustomize` does not have `edit set label` command to add
207207
label, but we can edit `kustomize.yaml` file under
208208
`prod` directory and add the production labels under
209-
`objectLabels` fields as highlighted below.
209+
`labelsToAdd` fields as highlighted below.
210210
211211
<!-- @customizeLabels @test -->
212212
```

docs/kustomize.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
kustomizationName: helloworld
2-
description: helloworld does useful stuff.
31
namePrefix: some-prefix
42
# Labels to add to all objects and selectors.
53
# These labels would also be used to form the selector for apply --prune
64
# Named differently than “labels” to avoid confusion with metadata for this object
7-
objectLabels:
5+
labelsToAdd:
86
app: helloworld
9-
objectAnnotations:
7+
annotationsToAdd:
108
note: This is an example annotation
119
resources: []
1210
#- service.yaml

0 commit comments

Comments
 (0)