apiVersion: v1
kind: Template
metadata:
  name: asec-secret
  labels:
    app: asec
  annotations:
    descriptions: "ASEC Secrets"
objects:
- apiVersion: v1
  kind: Secret
  metadata:
    annotations:
      template.openshift.io/expose-asec_password: '{.data[''asec-password'']}'
      template.openshift.io/expose-root_password: '{.data[''root-password'']}'
      template.openshift.io/expose-service_password: '{.data[''service-password'']}'
    name: asec
  stringData:
    asec-password: "${ASEC_PASSWORD}"
    root-password: "${ROOT_PASSWORD}"
    service-password: "${SERVICE_PASSWORD}"
parameters:
- description: Password for the service users
  displayName: Service Connection Password
  from: '[a-zA-Z0-9]{16}'
  generate: expression
  name: SERVICE_PASSWORD
  required: true
- description: Password for the asec user
  displayName: ASEC password
  from: '[a-zA-Z0-9]{16}'
  generate: expression
  name: ASEC_PASSWORD
  required: true
- description: Password for the root users
  displayName: DB Admin Password
  from: '[a-zA-Z0-9]{16}'
  generate: expression
  name: ROOT_PASSWORD
  required: true
