diff --git a/utils/utils.go b/utils/utils.go index 78cca18..9f082f3 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -93,7 +93,7 @@ func GetContainerByName(name string, containers []corev1.Container) (*corev1.Con return nil, -1 } -// TplValue returns a container by name and its index in the array. +// TplValue returns a string that can be used in a template to access a value from the values file. func TplValue(serviceName, variable string, pipes ...string) string { if len(pipes) == 0 { return `{{ tpl .Values.` + serviceName + `.` + variable + ` $ }}`