pgo_update_user
pgo update user
Update a postgres user
Synopsis
UPDATE allows you to update a pgo user. For example: //change a password, set valid days for 40 days from now pgo update user mycluster –username=someuser –password=foo –valid-days=40 //expire password for a user pgo update user mycluster –username=someuser –expire-user //Update all passwords older than the number of days specified pgo update user mycluster –expired=45 –password-length=8
pgo update user [flags]
Options
--all all clusters.
--expire-user Performs expiring a user if set to true.
--expired string Updates passwords that will expire in X days using an autogenerated password.
-h, --help help for user
--password string Specifies the user password when updating a user password or creating a new user.
--password-length int If no password is supplied with the expired flag, this is the length of the auto generated password (default 22)
-s, --selector string The selector to use for cluster filtering.
--username string Updates the postgres user on selective clusters.
--valid-days int Sets passwords for new users to X days. (default 30)
Options inherited from parent commands
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
--debug Enable debugging when true.
-n, --namespace string The namespace to use for pgo requests.
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
SEE ALSO
- pgo update - Update a pgouser, pgorole, or cluster