Skip to content

Commit e7e0003

Browse files
authored
Merge pull request #500 from openabdev/fix/agent-fullname-nil-cfg
fix(helm): handle nil cfg in agentFullname for NOTES.txt compatibility
2 parents 5fe3ad9 + 967ce22 commit e7e0003

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

charts/openab/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ app.kubernetes.io/component: {{ .agent }}
3838

3939
{{/* Per-agent resource name: nameOverride > <fullname>-<agentKey> */}}
4040
{{- define "openab.agentFullname" -}}
41-
{{- if and .cfg.nameOverride (ne .cfg.nameOverride "") }}
41+
{{- if and .cfg (.cfg.nameOverride) (ne .cfg.nameOverride "") }}
4242
{{- .cfg.nameOverride | trunc 63 | trimSuffix "-" }}
4343
{{- else }}
4444
{{- printf "%s-%s" (include "openab.fullname" .ctx) .agent | trunc 63 | trimSuffix "-" }}

0 commit comments

Comments
 (0)