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

namespace: ente
namePrefix: ente-

images:
  # - name: museum
  #   newName: ghcr.io/ente-io/server
  #   newTag: cdbf8c5f0971cb383df03c6b2f72ffb85387beef
  - name: museum
    newName: code.icb4dc0.de/infrastructure/images/ente/musuem
    newTag: latest
    digest: sha256:08b6fd823efc15a38592a808840012a7ad13cccb645f88dfe981c50fcca8798a
  - name: photos
    newName: code.icb4dc0.de/infrastructure/images/ente/photos
    newTag: v0.9.49
  - name: cast
    newName: code.icb4dc0.de/infrastructure/images/ente/cast
    newTag: v0.9.49

labels:
  - includeSelectors: true
    pairs:
      app.kubernetes.io/instance: ente
      app.kubernetes.io/managed-by: kustomize

resources:
  - resources/namespace.yaml
  - resources/museum/db/db.yaml
  - resources/museum/db/user.yaml
  - resources/museum/cache.yaml
  - resources/museum/deployment.yaml
  - resources/museum/service.yaml
  - resources/photos/deployment.yaml
  - resources/photos/service.yaml
  - resources/cast/deployment.yaml
  - resources/cast/service.yaml
  - resources/http_routes.yaml

configMapGenerator:
  - name: museum-config
    files:
      - config/museum.yaml

secretGenerator:
  - name: museum-credentials
    files:
      - config/credentials.yaml