diff --git a/docs/kustomization.yaml b/docs/kustomization.yaml index 4cf8a0a84..74cd29794 100644 --- a/docs/kustomization.yaml +++ b/docs/kustomization.yaml @@ -32,10 +32,6 @@ # visible in configuration reviews. # ---------------------------------------------------- -# apiVersion and Kind for current kustomization.yaml -apiVersion: v1 -kind: Kustomization - # Adds namespace to all resources. namespace: my-namespace diff --git a/examples/breakfast.md b/examples/breakfast.md index 1c1670dc9..a98fbb408 100644 --- a/examples/breakfast.md +++ b/examples/breakfast.md @@ -24,8 +24,6 @@ breakfast. This breakfast has coffee and pancakes: ``` cat <$DEMO_HOME/breakfast/base/kustomization.yaml -apiVersion: v1 -kind: Kustomization resources: - coffee.yaml - pancakes.yaml @@ -71,8 +69,6 @@ likes her coffee hot: mkdir -p $DEMO_HOME/breakfast/overlays/alice cat <$DEMO_HOME/breakfast/overlays/alice/kustomization.yaml -apiVersion: v1 -kind: Kustomization commonLabels: who: alice bases: @@ -96,8 +92,6 @@ And likewise a [variant] for Bob, who wants _five_ pancakes, with strawberries: mkdir -p $DEMO_HOME/breakfast/overlays/bob cat <$DEMO_HOME/breakfast/overlays/bob/kustomization.yaml -apiVersion: v1 -kind: Kustomization commonLabels: who: bob bases: diff --git a/examples/combineConfigs.md b/examples/combineConfigs.md index 9abd56f2e..86e46d34d 100644 --- a/examples/combineConfigs.md +++ b/examples/combineConfigs.md @@ -158,8 +158,6 @@ height=10m EOF cat <$DEMO_HOME/base/kustomization.yaml -apiVersion: v1 -kind: Kustomization configMapGenerator: - name: my-configmap files: @@ -193,8 +191,6 @@ dbpassword=mothersMaidenName EOF cat <$OVERLAYS/development/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - ../../base namePrefix: dev- @@ -277,8 +273,6 @@ dbpassword=thisShouldProbablyBeInASecretInstead EOF cat <$OVERLAYS/production/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - ../../base namePrefix: prod- diff --git a/examples/configGeneration.md b/examples/configGeneration.md index 2bc8438a4..7a3750ade 100644 --- a/examples/configGeneration.md +++ b/examples/configGeneration.md @@ -39,8 +39,6 @@ curl -s -o "$BASE/#1.yaml" "https://raw.githubusercontent.com\ /{deployment,service}.yaml" cat <<'EOF' >$BASE/kustomization.yaml -apiVersion: v1 -kind: Kustomization commonLabels: app: hello resources: @@ -61,8 +59,6 @@ OVERLAYS=$DEMO_HOME/overlays mkdir -p $OVERLAYS/staging cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml -apiVersion: v1 -kind: Kustomization namePrefix: staging- nameSuffix: -v1 commonLabels: diff --git a/examples/generatorOptions.md b/examples/generatorOptions.md index d92ce7a3b..a9fc3c3c0 100644 --- a/examples/generatorOptions.md +++ b/examples/generatorOptions.md @@ -18,8 +18,6 @@ Create a kustomization and add a ConfigMap generator to it. ``` cat > $DEMO_HOME/kustomization.yaml << EOF -apiVersion: v1 -kind: Kustomization configMapGenerator: - name: my-configmap literals: diff --git a/examples/helloWorld/README.md b/examples/helloWorld/README.md index 942a8d664..a812ad9a2 100644 --- a/examples/helloWorld/README.md +++ b/examples/helloWorld/README.md @@ -142,8 +142,6 @@ defining a new name prefix, and some different labels. ``` cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml -apiVersion: v1 -kind: Kustomization namePrefix: staging- commonLabels: variant: staging @@ -185,8 +183,6 @@ with a different name prefix and labels. ``` cat <$OVERLAYS/production/kustomization.yaml -apiVersion: v1 -kind: Kustomization namePrefix: production- commonLabels: variant: production diff --git a/examples/helloWorld/kustomization.yaml b/examples/helloWorld/kustomization.yaml index f4e18e6af..41965951e 100644 --- a/examples/helloWorld/kustomization.yaml +++ b/examples/helloWorld/kustomization.yaml @@ -1,7 +1,5 @@ # Example configuration for the webserver # at https://github.com/monopole/hello -apiVersion: v1 -kind: Kustomization commonLabels: app: hello diff --git a/examples/imageTags.md b/examples/imageTags.md index 43a725b68..d6a5fe11a 100644 --- a/examples/imageTags.md +++ b/examples/imageTags.md @@ -13,8 +13,6 @@ Make a `kustomization` containing a pod resource ``` cat <$DEMO_HOME/kustomization.yaml -apiVersion: v1 -kind: Kustomization resources: - pod.yaml EOF diff --git a/examples/jsonpatch.md b/examples/jsonpatch.md index e861464e5..61c00f38f 100644 --- a/examples/jsonpatch.md +++ b/examples/jsonpatch.md @@ -11,8 +11,6 @@ Make a `kustomization` containing an ingress resource. DEMO_HOME=$(mktemp -d) cat <$DEMO_HOME/kustomization.yaml -apiVersion: v1 -kind: Kustomization resources: - ingress.yaml EOF diff --git a/examples/ldap/base/kustomization.yaml b/examples/ldap/base/kustomization.yaml index c039b6e66..6cd10dfad 100644 --- a/examples/ldap/base/kustomization.yaml +++ b/examples/ldap/base/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization resources: - deployment.yaml - service.yaml diff --git a/examples/ldap/overlays/production/kustomization.yaml b/examples/ldap/overlays/production/kustomization.yaml index 82217a7d3..84a159c96 100644 --- a/examples/ldap/overlays/production/kustomization.yaml +++ b/examples/ldap/overlays/production/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ../../base patchesStrategicMerge: diff --git a/examples/ldap/overlays/staging/kustomization.yaml b/examples/ldap/overlays/staging/kustomization.yaml index 0f9e4c258..18bbf920f 100644 --- a/examples/ldap/overlays/staging/kustomization.yaml +++ b/examples/ldap/overlays/staging/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ../../base patchesStrategicMerge: diff --git a/examples/multibases/README.md b/examples/multibases/README.md index 6a8567721..ae3d471a4 100644 --- a/examples/multibases/README.md +++ b/examples/multibases/README.md @@ -22,8 +22,6 @@ BASE=$DEMO_HOME/base mkdir $BASE cat <$BASE/kustomization.yaml -apiVersion: v1 -kind: Kustomization resources: - pod.yaml EOF @@ -49,8 +47,6 @@ DEV=$DEMO_HOME/dev mkdir $DEV cat <$DEV/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - ./../base namePrefix: dev- @@ -64,8 +60,6 @@ STAG=$DEMO_HOME/staging mkdir $STAG cat <$STAG/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - ./../base namePrefix: stag- @@ -79,8 +73,6 @@ PROD=$DEMO_HOME/production mkdir $PROD cat <$PROD/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - ./../base namePrefix: prod- @@ -91,8 +83,6 @@ Then define a _Kustomization_ composing three variants together: ``` cat <$DEMO_HOME/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - ./dev - ./staging diff --git a/examples/multibases/base/kustomization.yaml b/examples/multibases/base/kustomization.yaml index 2bdaded8f..d577d5e5f 100644 --- a/examples/multibases/base/kustomization.yaml +++ b/examples/multibases/base/kustomization.yaml @@ -1,4 +1,2 @@ -apiVersion: v1 -kind: Kustomization resources: -- pod.yaml +- pod.yaml \ No newline at end of file diff --git a/examples/multibases/dev/kustomization.yaml b/examples/multibases/dev/kustomization.yaml index 10257a866..d92695ed7 100644 --- a/examples/multibases/dev/kustomization.yaml +++ b/examples/multibases/dev/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ./../base diff --git a/examples/multibases/kustomization.yaml b/examples/multibases/kustomization.yaml index f658b850a..387ca23ae 100644 --- a/examples/multibases/kustomization.yaml +++ b/examples/multibases/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ./dev - ./staging diff --git a/examples/multibases/production/kustomization.yaml b/examples/multibases/production/kustomization.yaml index c2b3b3ead..f6ae0c76d 100644 --- a/examples/multibases/production/kustomization.yaml +++ b/examples/multibases/production/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ./../base diff --git a/examples/multibases/staging/kustomization.yaml b/examples/multibases/staging/kustomization.yaml index cd13840c1..0606f73c9 100644 --- a/examples/multibases/staging/kustomization.yaml +++ b/examples/multibases/staging/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ./../base diff --git a/examples/remoteBuild.md b/examples/remoteBuild.md index 3800c856a..747724fca 100644 --- a/examples/remoteBuild.md +++ b/examples/remoteBuild.md @@ -34,8 +34,6 @@ A base can also be specified as a URL: DEMO_HOME=$(mktemp -d) cat <$DEMO_HOME/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - github.com/kubernetes-sigs/kustomize//examples/multibases?ref=v1.0.6 namePrefix: remote- diff --git a/examples/springboot/overlays/production/kustomization.yaml b/examples/springboot/overlays/production/kustomization.yaml index baf52ab77..c892f877a 100644 --- a/examples/springboot/overlays/production/kustomization.yaml +++ b/examples/springboot/overlays/production/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ../../base patchesStrategicMerge: diff --git a/examples/springboot/overlays/staging/kustomization.yaml b/examples/springboot/overlays/staging/kustomization.yaml index 538fb1721..f2f34a742 100644 --- a/examples/springboot/overlays/staging/kustomization.yaml +++ b/examples/springboot/overlays/staging/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - ../../base namePrefix: staging- diff --git a/examples/transformerconfigs/crd/kustomization.yaml b/examples/transformerconfigs/crd/kustomization.yaml index 0d1ecf3b9..04c6ec5ad 100644 --- a/examples/transformerconfigs/crd/kustomization.yaml +++ b/examples/transformerconfigs/crd/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization resources: - resources.yaml diff --git a/examples/wordpress/README.md b/examples/wordpress/README.md index 29fd290cb..2b7a86749 100644 --- a/examples/wordpress/README.md +++ b/examples/wordpress/README.md @@ -49,8 +49,6 @@ Create a new kustomization with two bases: ``` cat <$DEMO_HOME/kustomization.yaml -apiVersion: v1 -kind: Kustomization bases: - wordpress - mysql diff --git a/examples/wordpress/kustomization.yaml b/examples/wordpress/kustomization.yaml index cc8afc5cd..cda9e01f0 100644 --- a/examples/wordpress/kustomization.yaml +++ b/examples/wordpress/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization bases: - wordpress - mysql diff --git a/examples/wordpress/mysql/kustomization.yaml b/examples/wordpress/mysql/kustomization.yaml index 022387f9c..bc664d1b1 100644 --- a/examples/wordpress/mysql/kustomization.yaml +++ b/examples/wordpress/mysql/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization resources: - deployment.yaml - service.yaml diff --git a/examples/wordpress/wordpress/kustomization.yaml b/examples/wordpress/wordpress/kustomization.yaml index 26b0f7980..a944d005c 100644 --- a/examples/wordpress/wordpress/kustomization.yaml +++ b/examples/wordpress/wordpress/kustomization.yaml @@ -1,5 +1,3 @@ -apiVersion: v1 -kind: Kustomization resources: - deployment.yaml - service.yaml