You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hugo/content/getting-started/_index.adoc
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -483,6 +483,14 @@ To delete a Postgres user in the *mycluster* cluster, execute:
483
483
pgo user delete user sally --selector=name=mycluster
484
484
....
485
485
486
+
To create a new Postgres user to the *mycluster* cluster that has credentials created with Kubernetes Secrets, use the *--managed* flag:
487
+
....
488
+
pgo create user sally --managed --selector=name=mycluster
489
+
....
490
+
491
+
A *managed* account is one that the Operator can manipulate as well; this means that when you run `pgo show cluster mycluster --show-secrets`
492
+
their credentials are visible, when you run `pgo test mycluster` the account is tested with the other default accounts, etc.
493
+
486
494
To change the password for a user in the *mycluster* cluster:
487
495
....
488
496
pgo user --change-password=sally --selector=name=mycluster
@@ -498,7 +506,7 @@ pgo user --expired=7 --selector=name=mycluster
498
506
499
507
To assign users to a cluster:
500
508
....
501
-
pgo create user user1 --valid-days=30 --managed --db=userdb --selector=name=xraydb1
509
+
pgo create user user1 --valid-days=30 --db=userdb --selector=name=xraydb1
502
510
....
503
511
504
512
In this example, a user named *user1* is created with a *valid until* password date set to expire in 30 days. That user will be granted access to the *userdb* database. This user account also will have an associated *secret* created to hold the password that was generated for this user. Any clusters that match the selector value will have this user created on it.
@@ -661,3 +669,14 @@ Database Images:
661
669
662
670
Databases Not Ready:
663
671
....
672
+
673
+
=== pgo show config
674
+
675
+
The `pgo show config` command displays the running operator configuration
676
+
parameters that dictate the setup and user defined configuration of the
677
+
operator. This command can be useful for sharing your configuration or
0 commit comments