This commit is contained in:
Stavros kois
2024-04-28 18:09:00 +03:00
parent 83e70913b2
commit 2b5e45f879
2 changed files with 2 additions and 3 deletions

View File

@@ -23,9 +23,8 @@ objectData:
{{- end }}
{{- $retain := dict "hourly" 24 "daily" 7 "weekly" 5 -}}
{{- $items := list "hourly" "daily" "weekly" -}}
{{- if $volsyncData.src.retain -}}
{{- $items := list "hourly" "daily" "weekly" -}}
{{- range $item := $items -}}
{{- with get $volsyncData.src.retain $item -}}
{{- $_ := set $retain $item . -}}

View File

@@ -12,8 +12,8 @@
"fsGroup" $rootCtx.Values.securityContext.pod.fsGroup
-}}
{{- $items := list "runAsUser" "runAsGroup" "fsGroup" -}}
{{- if $target.moverSecurityContext -}}
{{- $items := list "runAsUser" "runAsGroup" "fsGroup" -}}
{{- range $item := $items -}}
{{- if hasKey $target.moverSecurityContext $item -}}
{{- $_ := set $sec $item (get $target.moverSecurityContext $item) -}}