Skip to content

Commit

Permalink
Use stringData
Browse files Browse the repository at this point in the history
For the example, it's better to see the user name directly instead of
being base 64 encoded.
  • Loading branch information
ansd authored and ChunyiLyu committed Jun 11, 2021
1 parent 2e033f6 commit 994c333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/examples/users/publish-consume-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: Secret
metadata:
name: test-user-credentials
type: Opaque
data:
username: dGVzdC11c2Vy # base64 encoded "test-user"
password: dmVyeXNlY3VyZXB3
stringData:
username: test-user
password: verysecurepw
---
apiVersion: rabbitmq.com/v1beta1
kind: User
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/users/userPreDefinedCreds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ kind: Secret
metadata:
name: credentials-secret
type: Opaque
data:
username: bXktc2VjcmV0LXVzZXI=
password: d2h5YXJleW91bG9va2luZ2hlcmU=
stringData:
username: import-user-sample
password: whyareyoulookinghere
---
apiVersion: rabbitmq.com/v1beta1
kind: User
Expand Down

0 comments on commit 994c333

Please sign in to comment.