summaryrefslogtreecommitdiffstats
path: root/setup/projects/services/templates/01-mysql-secret.yml.j2
blob: 22412bc91eb851a31cfd9760f73df7f053547ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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