mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 11:14:25 -03:00
fix(common): correct wrong reference for expanding object names in tpl format
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 12.2.14
|
||||
version: 12.2.15
|
||||
|
||||
@@ -38,7 +38,7 @@ objectData: The object data to be used to render the container.
|
||||
|
||||
{{- $name = tpl $obj.name $rootCtx -}}
|
||||
|
||||
{{- $expandName := $obj.expandName | default true -}}
|
||||
{{- $expandName := $obj.expandObjectName | default true -}}
|
||||
{{- if kindIs "string" $expandName -}}
|
||||
{{- $expandName = tpl $expandName $rootCtx -}}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ objectData: The object data to be used to render the container.
|
||||
|
||||
{{- $objectName := tpl .name $rootCtx -}}
|
||||
|
||||
{{- $expandName := .expandName | default true -}}
|
||||
{{- $expandName := .expandObjectName | default true -}}
|
||||
{{- if kindIs "string" $expandName -}}
|
||||
{{- $expandName = tpl $expandName $rootCtx -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user