pgo create user

pgo create user

Create a PostgreSQL user

Synopsis

Create a postgres user. For example:

pgo create user --username=someuser --all --managed
pgo create user --username=someuser  mycluster --managed
pgo create user --username=someuser -selector=name=mycluster --managed
pgo create user --username=user1 --selector=name=mycluster
pgo create user [flags]

Options

  -h, --help                  help for user
      --managed               Creates a user with secrets that can be managed by the Operator.
      --password string       The password to use for creating a new user which overrides a generated password.
      --password-length int   If no password is supplied, sets the length of the automatically generated password. Defaults to the value set on the server.
  -s, --selector string       The selector to use for cluster filtering.
      --username string       The username to use for creating a new user
      --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 that will process the request from the pgo client.
      --debug                    Enable additional output for debugging.
      --disable-tls              Disable TLS authentication to the Postgres Operator.
      --exclude-os-trust         Exclude CA certs from OS default trust store
  -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 create - Create a Postgres Operator resource
Auto generated by spf13/cobra on 29-Jan-2020