Skip to content

Commit 43c191e

Browse files
authored
Add top op user object update limitation (#415)
* Add top op user object update limitation
1 parent bc2bb00 commit 43c191e

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

docs/examples/users/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# User examples
2+
3+
This section contains 3 examples for creating RabbitMQ users.
4+
Messaging Topology Operator creates users with generated credentials by default. To create RabbitMQ users with provided credentials, you can reference a kubernetes secret object contains keys `username` and `password` in its Data field.
5+
See [userPreDefinedCreds.yaml](./userPreDefinedCreds.yaml) and [publish-consume-user.yaml](./publish-consume-user.yaml) as examples.
6+
Note that Messaging Topology Operator does not watch the provided secret and updating the secret object won't update actual user credentials.
7+
If you wish to update user credentials, you can update the secret and then add a label or annotation to the User object to trigger a Reconile loop.

docs/examples/users/publish-consume-user.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
name: test-user-credentials
66
type: Opaque
77
stringData:
8-
username: test-user
9-
password: verysecurepw
8+
username: test-user # Note that Messaging Topology Operator does not watch this secret. Updating this secret object won't update actual user credentials.
9+
password: verysecurepw # As a workaround, you can add a label or annotation to the User object to trigger a Reconile loop and credentials will be updated.
1010
---
1111
apiVersion: rabbitmq.com/v1beta1
1212
kind: User

docs/examples/users/userPreDefinedCreds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
name: credentials-secret
55
type: Opaque
66
stringData:
7-
username: import-user-sample
8-
password: whyareyoulookinghere
7+
username: import-user-sample # Note that Messaging Topology Operator does not watch this secret. Updating this secret object won't update actual user credentials.
8+
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.
99
---
1010
apiVersion: rabbitmq.com/v1beta1
1111
kind: User

docs/examples/vault-support/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Topology Operator uses the first approach (Direct API).
2020

2121
## Vault-related configuration required
2222

23-
The Vault server must have the version 2 key value secret engine and the
23+
The Vault server must have the version 2 key value secret engine and the
2424
[Vault Kubernetes auth method](https://www.vaultproject.io/docs/auth/kubernetes)
2525
enabled.
2626

0 commit comments

Comments
 (0)