Some kustomization field renaming.

This commit is contained in:
Jeffrey Regan
2018-04-13 13:32:08 -07:00
parent 2b764f2f39
commit 8c57c1e974
4 changed files with 9 additions and 13 deletions

View File

@@ -133,12 +133,11 @@ defining a new name prefix, and some different labels.
<!-- @makeStagingKustomization @test -->
```
cat <<'EOF' >$OVERLAYS/staging/kustomize.yaml
kustomizationName: makes-staging-hello
namePrefix: staging-
objectLabels:
labelsToAdd:
instance: staging
org: acmeCorporation
objectAnnotations:
annotationsToAdd:
note: Hello, I am staging!
bases:
- ../../base
@@ -175,12 +174,11 @@ with a different name prefix and labels.
<!-- @makeProductionKustomization @test -->
```
cat <<EOF >$OVERLAYS/production/kustomize.yaml
kustomizationName: makes-production-tuthello
namePrefix: production-
objectLabels:
labelsToAdd:
instance: production
org: acmeCorporation
objectAnnotations:
annotationsToAdd:
note: Hello, I am production!
bases:
- ../../base

View File

@@ -131,7 +131,7 @@ selector.
`kustomize` does not have `set label` command to add
label, but we can edit `kustomize.yaml` file under
`prod` directory and add the production labels under
`objectLabels` fields as highlighted below.
`labelsToAdd` fields as highlighted below.
<!-- @customizeLabels @test -->
```

View File

@@ -156,7 +156,7 @@ cat kustomize.yaml
> ```
> namePrefix: prod-
> objectAnnotations:
> annotationsToAdd:
> note: This is a example annotation
> ```
@@ -206,7 +206,7 @@ selector.
`kustomize` does not have `edit set label` command to add
label, but we can edit `kustomize.yaml` file under
`prod` directory and add the production labels under
`objectLabels` fields as highlighted below.
`labelsToAdd` fields as highlighted below.
<!-- @customizeLabels @test -->
```