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

namespace: snips

images:
  - name: snips
    newName: ghcr.io/robherley/snips.sh
    newTag: v0.4.0
  - name: litestream
    newName: code.icb4dc0.de/infrastructure/litestream
    newTag: "0.3.14-rc1"

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

resources:
  - resources/namespace.yaml
  - resources/secret.snips.yaml
  - resources/statefulset.yaml
  - resources/service.yaml
  - resources/routes.yaml

configMapGenerator:
  - name: snips-config
    envs:
      - config/.env
  - name: litestream-config
    files:
      - config/litestream.yml