apiVersion: v1
kind: ConfigMap
metadata:
  name: container-mom-clusters
  namespace: container-mom-system
data:
  eu-central: |
    server: https://eu-central-1.k8s.container.mom
    certificate-authority-data: ${EU_CENTRAL_CA_DATA}
    token: ${EU_CENTRAL_TOKEN}
  eu-east: |
    server: https://eu-east-1.k8s.container.mom
    certificate-authority-data: ${EU_EAST_CA_DATA}
    token: ${EU_EAST_TOKEN}
  us-east: |
    server: https://us-east-1.k8s.container.mom
    certificate-authority-data: ${US_EAST_CA_DATA}
    token: ${US_EAST_TOKEN}
  us-west: |
    server: https://us-west-1.k8s.container.mom
    certificate-authority-data: ${US_WEST_CA_DATA}
    token: ${US_WEST_TOKEN}
---
apiVersion: v1
kind: Secret
metadata:
  name: container-mom-clusters-tokens
  namespace: container-mom-system
type: Opaque
data:
  # Base64 encoded tokens for each cluster
  EU_CENTRAL_TOKEN: ${EU_CENTRAL_TOKEN_B64}
  EU_EAST_TOKEN: ${EU_EAST_TOKEN_B64}
  US_EAST_TOKEN: ${US_EAST_TOKEN_B64}
  US_WEST_TOKEN: ${US_WEST_TOKEN_B64}
  # Base64 encoded CA data for each cluster
  EU_CENTRAL_CA_DATA: ${EU_CENTRAL_CA_DATA_B64}
  EU_EAST_CA_DATA: ${EU_EAST_CA_DATA_B64}
  US_EAST_CA_DATA: ${US_EAST_CA_DATA_B64}
  US_WEST_CA_DATA: ${US_WEST_CA_DATA_B64}
