Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

control the creation of cluster api secret #205

Open
yuvalgtrustmi opened this issue Feb 7, 2024 · 0 comments
Open

control the creation of cluster api secret #205

yuvalgtrustmi opened this issue Feb 7, 2024 · 0 comments

Comments

@yuvalgtrustmi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant