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

      --all                    Create a user on every cluster.
  -h, --help                   help for user
      --managed                Creates a user with secrets that can be managed by the Operator.
  -o, --output string          The output format. Supported types are: "json"
      --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.
      --password-type string   The type of password hashing to use.Choices are: (md5, scram-sha-256). (default "md5")
  -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 the number of days that a password is valid. Defaults to the server value.

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 11-May-2020