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

namespace: snips

images:
  - name: snips
    newName: ghcr.io/robherley/snips.sh
    newTag: v0.3.2
  - name: litestream
    newName: litestream/litestream
    newTag: "0.3"

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

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

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

generators:
  - ./secret-generator.yaml