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

namespace: kube-system

resources:
  - resources/secret.garage.yaml
  - resources/secret.hcloud.yaml
  - resources/storageClass.garage.yaml
  - resources/storageClass.hcloud.yaml

images:
  - name: registrar
    newName: registry.k8s.io/sig-storage/csi-node-driver-registrar
    newTag: v2.10.1
  - name: provisioner
    newName: registry.k8s.io/sig-storage/csi-provisioner
    newTag: v3.6.4
  - name: csi
    newName: code.icb4dc0.de/infrastructure/csi-s3
    newTag: 0.38.3
    digest: sha256:afda8c9cb694023dcaca7c644114372927ddf2c2de77ee4f19caf5c7695dcb04

patches:
  - target:
      group: apps
      kind: DaemonSet
      version: v1
      name: csi-s3
    path: patches/daemonset.yaml

helmCharts:
  - name: csi-s3
    repo: https://yandex-cloud.github.io/k8s-csi-s3/charts/
    releaseName: csi-s3
    namespace: kube-system
    version: "0.38.3"
    valuesFile: config/values.csi-s3.yaml