Skip to content

Conversation

@nastena1606
Copy link
Collaborator

Updated the page

modified: docs/users.md

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:
Copy link
Contributor

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":""}}'
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

@it-percona it-percona temporarily deployed to K8SPG-570-Doc-user-secrets - percona-postgresql-operator-2.0 PR #323 November 5, 2025 14:35 — with Render Destroyed
@it-percona it-percona temporarily deployed to K8SPG-570-Doc-user-secrets - percona-postgresql-operator-2.0 PR #323 November 5, 2025 14:35 — with Render Destroyed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants