You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiVersion: v1kind: Secretmetadata:
name: credentials-secrettype: OpaquestringData:
username: import-user-sample # Note that Messaging Topology Operator does not watch this secret. Updating this secret object won't update actual user credentials.password: whyareyoulookinghere # As a workaround, you can add a label or annotation to the User object to trigger a Reconile loop and credentials will be updated.
---
apiVersion: rabbitmq.com/v1beta1kind: Usermetadata:
name: import-user-samplespec:
tags:
- management # available tags are 'management', 'policymaker', 'monitoring' and 'administrator'
- policymakerrabbitmqClusterReference:
name: test # rabbitmqCluster must exist in the same namespace as this resourceimportCredentialsSecret:
name: credentials-secret
Note that the Operator does not monitor the generated secret object and updating the secret object won't update the credentials. As a workaround, add a label or annotation to users.rabbitmq.com object to trigger the Operator to reconcile.
The docs or examples don't specify what annotation or label needs to be added to the user to allow reconcile?
I wasn't able to find it in examples or docs
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using a similar setup as described here: https://www.rabbitmq.com/kubernetes/operator/using-topology-operator.html#users-permissions
https://github.com/rabbitmq/messaging-topology-operator/tree/main/docs/examples/users
https://github.com/rabbitmq/messaging-topology-operator/blob/main/docs/examples/users/userPreDefinedCreds.yaml#L8C17-L8C17
The docs or examples don't specify what annotation or label needs to be added to the user to allow reconcile?
I wasn't able to find it in examples or docs
Beta Was this translation helpful? Give feedback.
All reactions