diff --git a/Chart.yaml b/Chart.yaml index c8f2b36..9a107e6 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -23,8 +23,8 @@ description: | Git). type: application -version: 0.5.1 -appVersion: "0.5.1" +version: 0.5.2 +appVersion: "0.5.2" dependencies: - name: cert-manager diff --git a/templates/csi-snapshotter.yaml b/templates/csi-snapshotter.yaml index 03b189a..2f0d5c6 100644 --- a/templates/csi-snapshotter.yaml +++ b/templates/csi-snapshotter.yaml @@ -30,6 +30,7 @@ metadata: name: volumesnapshotclasses.snapshot.storage.k8s.io annotations: argocd.argoproj.io/sync-options: ServerSideApply=true + api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/814" spec: group: snapshot.storage.k8s.io names: @@ -86,6 +87,7 @@ metadata: name: volumesnapshotcontents.snapshot.storage.k8s.io annotations: argocd.argoproj.io/sync-options: ServerSideApply=true + api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/814" spec: group: snapshot.storage.k8s.io names: @@ -138,6 +140,7 @@ metadata: name: volumesnapshots.snapshot.storage.k8s.io annotations: argocd.argoproj.io/sync-options: ServerSideApply=true + api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/814" spec: group: snapshot.storage.k8s.io names: diff --git a/templates/longhorn-recurringjobs.yaml b/templates/longhorn-recurringjobs.yaml index 1daed0b..9bfbcb5 100644 --- a/templates/longhorn-recurringjobs.yaml +++ b/templates/longhorn-recurringjobs.yaml @@ -35,6 +35,9 @@ metadata: name: tenants-snapshot-hourly namespace: {{ .Values.namespace }} spec: + # Longhorn's admission webhook requires spec.name == metadata.name. + # An empty spec.name fails with "invalid job {Name: ...}". + name: tenants-snapshot-hourly cron: "0 * * * *" task: snapshot groups: [default] @@ -48,6 +51,7 @@ metadata: name: tenants-backup-daily namespace: {{ .Values.namespace }} spec: + name: tenants-backup-daily cron: "0 3 * * *" task: backup groups: [default]