apiVersion: kamaji.clastix.io/v1alpha1
kind: DataStore
metadata:
  name: mysql-bronze
spec:
  driver: MySQL
  endpoints:
    - bronze.mysql-system.svc:3306
  basicAuth:
    username:
      content: cm9vdA==
    password:
      secretReference:
        name: mysql-bronze-config
        namespace: mysql-system
        keyPath: MYSQL_ROOT_PASSWORD
  tlsConfig:
    certificateAuthority:
      certificate:
        secretReference:
          name: mysql-bronze-config
          namespace: mysql-system
          keyPath: "ca.crt"
    clientCertificate:
      certificate:
        secretReference:
          name: mysql-bronze-config
          namespace: mysql-system
          keyPath: "server.crt"
      privateKey:
        secretReference:
          name: mysql-bronze-config
          namespace: mysql-system
          keyPath: "server.key"
