apiVersion: v1
kind: Template
metadata:
  name: adei-secret
  labels:
    app: adei
  annotations:
    descriptions: "ADEI Secrets"
objects:
- apiVersion: v1
  kind: Secret
  metadata:
    annotations:
      template.openshift.io/expose-adei_password: '{.data[''adei-password'']}'
      template.openshift.io/expose-root_password: '{.data[''root-password'']}'
      template.openshift.io/expose-service_password: '{.data[''service-password'']}'
      template.openshift.io/expose-pma_password: '{.data[''pma-password'']}'
    name: adei
  stringData:
    adei-password: "{{ kaas_project_config.adei_password }}"
    root-password: "{{ kaas_project_config.adei_password }}"
    service-password: "${SERVICE_PASSWORD}"
    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
- description: Password for the service users
  displayName: Service Connection Password
  from: '[a-zA-Z0-9]{16}'
  generate: expression
  name: SERVICE_PASSWORD
  required: true
