feat(common): Release common-3.0.2

This commit is contained in:
Bernd Schorgers 2024-03-11 21:33:52 +01:00
parent 1e00c7f252
commit e20623adf9
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
16 changed files with 127 additions and 22 deletions

View file

@ -10,11 +10,16 @@ Convert ingress values to an object
{{- $objectName := (include "bjw-s.common.lib.chart.names.fullname" $rootContext) -}}
{{- if $objectValues.nameOverride -}}
{{- $objectName = printf "%s-%s" $objectName $objectValues.nameOverride -}}
{{- $override := tpl $objectValues.nameOverride $rootContext -}}
{{- if not (eq $objectName $override) -}}
{{- $objectName = printf "%s-%s" $objectName $override -}}
{{- end -}}
{{- else -}}
{{- $enabledIngresses := (include "bjw-s.common.lib.ingress.enabledIngresses" (dict "rootContext" $rootContext) | fromYaml ) }}
{{- if gt (len $enabledIngresses) 1 -}}
{{- $objectName = printf "%s-%s" $objectName $identifier -}}
{{- if not (eq $objectName $identifier) -}}
{{- $objectName = printf "%s-%s" $objectName $identifier -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- $_ := set $objectValues "name" $objectName -}}