control the creation of cluster api secret
we should be able to override the behavior of the creation of the cluster api.
I have a use case where I generate helm manifest without ability to access the cluster so the lookup:
{{- define "cluster_api.secret" -}} {{- $secret := lookup "v1" "Secret" .Release.Namespace "weaviate-cluster-api-basic-auth" -}} {{- if $secret -}} {{/* Reusing value of secret if exist */}} username: {{ $secret.data.username }} password: {{ $secret.data.password }} {{- else -}} {{/* add new data */}} username: {{ randAlphaNum 32 | b64enc | quote }} password: {{ randAlphaNum 32 | b64enc | quote }} {{- end -}} {{- end -}}
always return none and tries to generate the secret.
on the actual cluster I do have the secret and it collides.
hope that makes sense.
thanks