Set API version of KustomizationPatch to v1alpha1

Rename all `KustomizationPatch` instances to
`v1alpha1/KustomizationPatch`, to reflect that it's an alpha feature.
This commit is contained in:
Alex Pyrgiotis
2020-05-13 14:05:30 +00:00
parent 0152dbb0dc
commit 5884290fff

View File

@@ -465,15 +465,15 @@ spec:
EOF EOF
``` ```
Define an `external_db` component, using `kind: KustomizationPatch`, that Define an `external_db` component, using `kind: v1alpha1/KustomizationPatch`,
creates a `Secret` for the DB password and a new entry in the `ConfigMap`: that creates a `Secret` for the DB password and a new entry in the `ConfigMap`:
```shell ```shell
EXT_DB=$DEMO_HOME/components/external_db EXT_DB=$DEMO_HOME/components/external_db
mkdir -p $EXT_DB mkdir -p $EXT_DB
cat <<EOF >$EXT_DB/kustomization.yaml cat <<EOF >$EXT_DB/kustomization.yaml
kind: KustomizationPatch # <-- Component notation kind: v1alpha1/KustomizationPatch # <-- Component notation
secretGenerator: secretGenerator:
- name: dbpass - name: dbpass
@@ -528,7 +528,7 @@ LDAP=$DEMO_HOME/components/ldap
mkdir -p $LDAP mkdir -p $LDAP
cat <<EOF >$LDAP/kustomization.yaml cat <<EOF >$LDAP/kustomization.yaml
kind: KustomizationPatch kind: v1alpha1/KustomizationPatch
secretGenerator: secretGenerator:
- name: ldappass - name: ldappass
@@ -582,7 +582,7 @@ RECAPTCHA=$DEMO_HOME/components/recaptcha
mkdir -p $RECAPTCHA mkdir -p $RECAPTCHA
cat <<EOF >$RECAPTCHA/kustomization.yaml cat <<EOF >$RECAPTCHA/kustomization.yaml
kind: KustomizationPatch kind: v1alpha1/KustomizationPatch
secretGenerator: secretGenerator:
- name: recaptcha - name: recaptcha