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

resources:
  - ../../base

patches:
  - path: env-api.yaml
  - path: env-offline.yaml
  - path: externalsecret.yaml
  - path: replicas-api.yaml
  - path: replicas-offline.yaml
  - path: resource-api.yaml
  - path: resource-offline.yaml
  - path: servicemonitor.yaml

configMapGenerator:
  - name: aipower-conf
    behavior: replace
    files:
      - config.yaml=configmap/api-config.yaml
  - name: aipower-conf-offline
    behavior: replace
    files:
      - config.yaml=configmap/offline-config.yaml
  - name: oneconfig-aipower
    behavior: replace
    options:
      disableNameSuffixHash: true
    files:
      - config.yaml=configmap/oneconfig.yaml

images:
  - name: aipower:latest
    newName: 380838443567.dkr.ecr.us-west-2.amazonaws.com/dbaas/prod/aipower
    newTag: 16f549fa41c4e81a75a5feb154f6e824f15fa3b9
