We used avp-generate.sh from link
But now we've rendered our own script.
avp.yaml
We encountered a problem where if, after running the Helm template command, the password is hidden under sha256sum, i.e., of the form #fafadgsdgsdfgnbsvcs, then the avp no longer sees it, which is logical, and authentication doesn't work for us.
user {{ .username }} {{ default "on" .enabled }} {{ if $userPassword }}#{{ sha256sum $userPassword }}{{ else }}nopass{{ end }} {{ default "~*" .keys }} {{ default "&*" .channels }} {{ default "+@all" .commands }}
From: https://artifacthub.io/packages/helm/bitnami/redis/24.1.0?modal=template&template=configmap.yaml
Please tell me how to rewrite the avp-generate.sh to get around this.