summaryrefslogtreecommitdiffstats
path: root/setup/projects/services/templates
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2020-08-20 04:06:35 +0200
committerSuren A. Chilingaryan <csa@suren.me>2020-08-20 04:06:35 +0200
commit0b972f0816408fc696e75fd55de5cd160d6d7ccc (patch)
treebb6d12968add8c9d7c450fe82fb24f103935feb1 /setup/projects/services/templates
parent159fbcff7917d60372d780509a866384e8dc5c86 (diff)
downloadands-0b972f0816408fc696e75fd55de5cd160d6d7ccc.tar.gz
ands-0b972f0816408fc696e75fd55de5cd160d6d7ccc.tar.bz2
ands-0b972f0816408fc696e75fd55de5cd160d6d7ccc.tar.xz
ands-0b972f0816408fc696e75fd55de5cd160d6d7ccc.zip
Add MySQL service (for Michele and other low-volume users)
Diffstat (limited to 'setup/projects/services/templates')
-rw-r--r--setup/projects/services/templates/01-mysql-secret.yml.j228
1 files changed, 28 insertions, 0 deletions
diff --git a/setup/projects/services/templates/01-mysql-secret.yml.j2 b/setup/projects/services/templates/01-mysql-secret.yml.j2
new file mode 100644
index 0000000..22412bc
--- /dev/null
+++ b/setup/projects/services/templates/01-mysql-secret.yml.j2
@@ -0,0 +1,28 @@
+apiVersion: v1
+kind: Template
+metadata:
+ name: mysql-secret
+ labels:
+ app: mysql
+ annotations:
+ descriptions: "MySQL Secrets"
+objects:
+- apiVersion: v1
+ kind: Secret
+ metadata:
+ annotations:
+ template.openshift.io/expose-ipe_password: '{.data[''ipe-password'']}'
+ template.openshift.io/expose-root_password: '{.data[''root-password'']}'
+ template.openshift.io/expose-pma_password: '{.data[''pma-password'']}'
+ name: mysql
+ stringData:
+ ipe-password: "{{ ands_secrets.ipepdv }}"
+ root-password: "{{ ands_secrets.ipepdv }}"
+ pma-password: "${PMA_PASSWORD}"
+parameters:
+- description: Password for the PMA connection user.
+ displayName: PMA Connection Password
+ from: '[a-zA-Z0-9]{16}'
+ generate: expression
+ name: PMA_PASSWORD
+ required: true