diff --git a/examples/components.md b/examples/components.md index 92576433e..da4812fa6 100644 --- a/examples/components.md +++ b/examples/components.md @@ -127,10 +127,10 @@ secretGenerator: - site_key.txt - secret_key.txt -patches: +patchesStrategicMerge: - configmap.yaml -patches: +patchesJson6902: - target: group: apps version: v1 @@ -182,6 +182,23 @@ data: EOF ``` +Create local input files for external DB's password and reCAPTCHA's keys: + +```shell + +cat <$COMMUNITY/dbpass.txt +dbpass +EOF + +cat <$COMMUNITY/site_key.txt +sitekey +EOF + +cat <$COMMUNITY/secret_key.txt +secretkey +EOF +``` + Define a **enterprise** overlay that: - generates `Secrets` for LDAP's password and external DB's password @@ -208,10 +225,10 @@ secretGenerator: files: - dbpass.txt -patches: +patchesStrategicMerge: - configmap.yaml -patches: +patchesJson6902: - target: group: apps version: v1 @@ -263,6 +280,19 @@ data: EOF ``` +Create local input files for LDAP's password and external DB's password: + +```shell + +cat <$ENTERPRISE/ldappass.txt +ldappass +EOF + +cat <$ENTERPRISE/dbpass.txt +dbpass +EOF +``` + Define a **dev** overlay that supports all three features(ExternalDB, LDAP, reCAPTCHA) and conditionally enables some or all of them. In this example, we define a dev overlay that supports all the features, but has disabled the LDAP @@ -296,10 +326,10 @@ secretGenerator: - site_key.txt - secret_key.txt -patches: +patchesStrategicMerge: - configmap.yaml -patches: +patchesJson6902: - target: group: apps version: v1 @@ -367,6 +397,23 @@ data: EOF ``` +Create local input files for external DB's password and reCAPTCHA's keys: + +```shell + +cat <$DEV/dbpass.txt +dbpass +EOF + +cat <$DEV/site_key.txt +sitekey +EOF + +cat <$DEV/secret_key.txt +secretkey +EOF +``` + The above commands result in the following structure: ```shell