Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/examples/users/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# User examples

This section contains 3 examples for creating RabbitMQ users.
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.
See [userPreDefinedCreds.yaml](./userPreDefinedCreds.yaml) and [publish-consume-user.yaml](./publish-consume-user.yaml) as examples.
Note that Messaging Topology Operator does not watch the provided secret and updating the secret object won't update actual user credentials.
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.
4 changes: 2 additions & 2 deletions docs/examples/users/publish-consume-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
name: test-user-credentials
type: Opaque
stringData:
username: test-user
password: verysecurepw
username: test-user # Note that Messaging Topology Operator does not watch this secret. Updating this secret object won't update actual user credentials.
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.
---
apiVersion: rabbitmq.com/v1beta1
kind: User
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/users/userPreDefinedCreds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: credentials-secret
type: Opaque
stringData:
username: import-user-sample
password: whyareyoulookinghere
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/v1beta1
kind: User
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/vault-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Topology Operator uses the first approach (Direct API).

## Vault-related configuration required

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

Expand Down