feat(common): Release v2.1.0 (#221)

Co-authored-by: Christopher Larivière <lariviere.c@gmail.com>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2023-11-10 15:46:55 +01:00 committed by GitHub
parent 272dbef383
commit b360c9885a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 288 additions and 44 deletions

View file

@ -25,7 +25,7 @@ volumeMounts used by the container.
{{- end -}}
{{- /* Collect volumeClaimTemplates */ -}}
{{- if not (eq (dig "statefulset" "volumeClaimTemplates" nil $controllerObject) nil) -}}
{{- if not (empty (dig "statefulset" "volumeClaimTemplates" nil $controllerObject)) -}}
{{- range $persistenceValues := $controllerObject.statefulset.volumeClaimTemplates -}}
{{- /* Enable persistence item by default, but allow override */ -}}
{{- $persistenceEnabled := true -}}
@ -35,10 +35,10 @@ volumeMounts used by the container.
{{- if $persistenceEnabled -}}
{{- $mountValues := dict -}}
{{- if not (eq (dig "globalMounts" nil $persistenceValues) nil) -}}
{{- if not (empty (dig "globalMounts" nil $persistenceValues)) -}}
{{- $_ := set $mountValues "globalMounts" $persistenceValues.globalMounts -}}
{{- end -}}
{{- if not (eq (dig "advancedMounts" nil $persistenceValues) nil) -}}
{{- if not (empty (dig "advancedMounts" nil $persistenceValues)) -}}
{{- $_ := set $mountValues "advancedMounts" (dict $controllerObject.identifier $persistenceValues.advancedMounts) -}}
{{- end -}}
{{- $_ := set $persistenceItemsToProcess $persistenceValues.name $mountValues -}}