-
Notifications
You must be signed in to change notification settings - Fork 16
K8SPG-570 Documented how to set custom passwords #323
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
base: 2.0
Are you sure you want to change the base?
Conversation
Updated the page modified: docs/users.md
docs/users.md
Outdated
| secret/cat-credentials created | ||
| ``` | ||
|
|
||
| 2. Add a user and reference the Secret for them in the Custom Resource: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be 3. ?
| For example, to generate a new password for the user `cluster1` in the PostgreSQL cluster `cluster1` running in the `postgres-operator` namespace, use the following `kubectl patch` command: | ||
|
|
||
| ```bash | ||
| kubectl patch secret -n postgres-operator cluster1-pguser-cluster1 -p '{"data":{"password":""}}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use here $NAMESPACE instead of a hardcoded name? We do that in multiple other commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's an example where we explicitly say in the preamble "in the PostgreSQL cluster cluster1 running in the postgres-operator namespace" so it's fine here.
Updated the page
modified: docs/users.md