apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: alertstore-prod

resources:
  - ../../base
  - alertstore-external-secret.yaml

# Generated, not a plain resource: the name carries a content hash, so editing
# either file rolls the Deployment. Both are mounted with subPath, which never
# receives ConfigMap updates in place — without the hash a config change would
# sit in the cluster unread until something else happened to restart the pod.
configMapGenerator:
  - name: alertstore-config
    files:
      - config.yaml
  - name: alertstore-web-runtime-config
    files:
      - runtime-config.js

images:
  - name: alertstore
    newName: 557537366020.dkr.ecr.us-west-2.amazonaws.com/aisupport/prod/alertstore
    newTag: 46ba3760ec106a1635ee7b0fcb6aab3db88210db

patches:
  - path: deployment-patch.yaml
  - path: api-ingress-patch.yaml
  - path: public-ingress-patch.yaml
  - path: web-ingress-patch.yaml
