-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support only one secret with Aiven token #744
Comments
Related line of code for reference:
|
Hello @alexgo84 and thanks for bringing this up. I can see how the current way of providing the secret via If so, or if it would be acceptable for you to install another operator to handle cluster secrets I think we could extend apiVersion: aiven.io/v1alpha1
kind: Clickhouse
metadata:
name: my-clickhouse
spec:
authSecretRef:
kind: ClusterSecret # <-- This is new
name: aiven-token
key: token Let me know if this would work for you. |
Thanks for the response @rriski . - name: AIVEN_TOKEN
valueFrom:
secretKeyRef:
name: aiven-credentials
key: token
optional: true Then, if the secret is present the credentials in the secret will be used (while it'd possible to override them with the now optional In other words - if |
A solution for this is already implemented: #183 |
While integrating Aiven operator, I see the operator is expecting to find the Aiven token in a secret that would always be on the namespace of the managed resource.
If in my cluster I've many (hundreds or thousands) of namespaces with resources managed by aiven-operator, it seems redundant to set the same secret with the same token on each one of them. Might also become difficult to manage when the token needs to be changed.
Is there a way to set the secret with token in one place only?
If not, are there plans to implement this?
The text was updated successfully, but these errors were encountered: