mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-04 15:31:22 -03:00
fix(common): ensure tcportals configmap name is expanded by default
This commit is contained in:
@@ -24,7 +24,19 @@
|
||||
) -}}
|
||||
|
||||
{{/* construct configmap */}}
|
||||
|
||||
{{- $expandName := (include "tc.v1.common.lib.util.expandName" (dict
|
||||
"rootCtx" $ "objectData" $objectData
|
||||
"name" $name "caller" "Portal"
|
||||
"key" "configmap")) -}}
|
||||
|
||||
{{- $objectName := (printf "tcportal-%s" $name) -}}
|
||||
|
||||
{{- if eq $expandName "true" -}}
|
||||
{{- $objectName = (printf "%s-%s" $fullname $name) -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{- $configMap := dict "name" $objectName "shortName" $objectName "data" $portalData -}}
|
||||
|
||||
{{/* Perform validations */}} {{/* Configmaps have a max name length of 253 */}}
|
||||
|
||||
Reference in New Issue
Block a user