add apiVersion and kind in README.md for examples

This commit is contained in:
Jingfang Liu
2018-12-18 11:22:18 -08:00
parent 64372a786b
commit 0d14e89549
10 changed files with 40 additions and 0 deletions

View File

@@ -142,6 +142,8 @@ defining a new name prefix, and some different labels.
<!-- @makeStagingKustomization @test -->
```
cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml
apiVersion: v1
kind: Kustomization
namePrefix: staging-
commonLabels:
variant: staging
@@ -183,6 +185,8 @@ with a different name prefix and labels.
<!-- @makeProductionKustomization @test -->
```
cat <<EOF >$OVERLAYS/production/kustomization.yaml
apiVersion: v1
kind: Kustomization
namePrefix: production-
commonLabels:
variant: production