# services/comms/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: comms
resources:
  - namespace.yaml
  - serviceaccount.yaml
  - secretproviderclass.yaml
  - mas-configmap.yaml
  - helmrelease.yaml
  - livekit-config.yaml
  - element-call-config.yaml
  - element-call-deployment.yaml
  - guest-register-deployment.yaml
  - guest-register-service.yaml
  - atlasbot-deployment.yaml
  - atlasbot-service.yaml
  - wellknown.yaml
  - atlasbot-rbac.yaml
  - mas-secrets-ensure-rbac.yaml
  - comms-secrets-ensure-rbac.yaml
  - mas-db-ensure-rbac.yaml
  - synapse-signingkey-ensure-rbac.yaml
  - vault-sync-deployment.yaml
  - oneoffs/mas-admin-client-secret-ensure-job.yaml
  - oneoffs/mas-db-ensure-job.yaml
  - oneoffs/comms-secrets-ensure-job.yaml
  - oneoffs/synapse-admin-ensure-job.yaml
  - oneoffs/synapse-signingkey-ensure-job.yaml
  - oneoffs/synapse-seeder-admin-ensure-job.yaml
  - oneoffs/synapse-user-seed-job.yaml
  - oneoffs/mas-local-users-ensure-job.yaml
  - mas-deployment.yaml
  - livekit-token-deployment.yaml
  - livekit.yaml
  - coturn.yaml
  - seed-othrys-room.yaml
  - guest-name-job.yaml
  - oneoffs/othrys-kick-numeric-job.yaml
  - pin-othrys-job.yaml
  - reset-othrys-room-job.yaml
  - oneoffs/bstein-force-leave-job.yaml
  - livekit-ingress.yaml
  - livekit-middlewares.yaml
  - matrix-ingress.yaml

configMapGenerator:
  - name: comms-vault-env
    files:
      - comms_vault_env.sh=scripts/comms_vault_env.sh
    options:
      disableNameSuffixHash: true
  - name: comms-vault-entrypoint
    files:
      - scripts/vault-entrypoint.sh
    options:
      disableNameSuffixHash: true
  - name: matrix-guest-register
    files:
      - server.py=scripts/guest-register/server.py
    options:
      disableNameSuffixHash: true
  - name: atlasbot
    files:
      - bot.py=scripts/atlasbot/bot.py
    options:
      disableNameSuffixHash: true
  - name: othrys-element-host-config
    files:
      - 20-host-config.sh=scripts/element-host-config.sh
    options:
      disableNameSuffixHash: true
  - name: atlas-kb
    files:
      - INDEX.md=knowledge/INDEX.md
      - atlas.json=knowledge/catalog/atlas.json
      - atlas-summary.json=knowledge/catalog/atlas-summary.json
      - metrics.json=knowledge/catalog/metrics.json
      - runbooks.json=knowledge/catalog/runbooks.json
      - atlas-http.mmd=knowledge/diagrams/atlas-http.mmd
