Skip to content

Commit

Permalink
fix(base-clsuter): replace backup.enabled condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tasches committed Feb 5, 2024
1 parent e841331 commit 04724b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.backup.enabled (hasPrefix "4." (dig "spec" "chart" "spec" "version" "" (lookup "helm.toolkit.fluxcd.io/v2beta1" "HelmRelease" "backup" "velero"))) }}
{{- if and .Values.backup.backupStorageLocations (hasPrefix "4." (dig "spec" "chart" "spec" "version" "" (lookup "helm.toolkit.fluxcd.io/v2beta1" "HelmRelease" "backup" "velero"))) }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ dashboards:
gnetId: 17813
revision: 2
{{- end }}
{{- if .Values.backup.enabled }}
{{- if .Values.backup.backupStorageLocations }}
velero:
<<: *dashboard
gnetId: 11055
Expand Down
2 changes: 1 addition & 1 deletion charts/base-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ global:
app.kubernetes.io/component: storage
app.kubernetes.io/part-of: nfs-server-provisioner
backup:
condition: "{{ .Values.backup.enabled }}"
condition: "{{ .Values.backup.backupStorageLocations }}"
additionalLabels:
app.kubernetes.io/component: backup
certificates:
Expand Down

0 comments on commit 04724b4

Please sign in to comment.