[[ $componentName := .ComponentName ]]
apiVersion: v1
kind: Secret
metadata:
  name: [[ .Config.Name ]]
  namespace: {{ .Release.Namespace }}
type: Opaque
data:
  [[ range $data := .Config.Data ]]
  [[- $data.Name ]]: {{ .Values.[[ $componentName ]].configs.[[ $data.Name | camelCase ]] | b64enc | quote }}
  [[ end ]]