diff --git a/docs/reference/cluster_manifest.md b/docs/reference/cluster_manifest.md index 8cca890c8..a54754473 100644 --- a/docs/reference/cluster_manifest.md +++ b/docs/reference/cluster_manifest.md @@ -118,7 +118,7 @@ These parameters are grouped directly under the `spec` key in the manifest. a map of usernames to user flags for the users that should be created in the cluster by the operator. User flags are a list, allowed elements are `SUPERUSER`, `REPLICATION`, `INHERIT`, `LOGIN`, `NOLOGIN`, `CREATEROLE`, - `CREATEDB`, `BYPASSURL`. A login user is created by default unless NOLOGIN is + `CREATEDB`, `BYPASSRLS`. A login user is created by default unless NOLOGIN is specified, in which case the operator creates a role. One can specify empty flags by providing a JSON empty array '*[]*'. If the config option `enable_cross_namespace_secret` is enabled you can specify the namespace in diff --git a/kubectl-pg/README.md b/kubectl-pg/README.md index 78102cf9c..8213d4ff5 100644 --- a/kubectl-pg/README.md +++ b/kubectl-pg/README.md @@ -60,7 +60,7 @@ Use `--namespace` or `-n` flag if your cluster is in a different namespace to wh ```kubectl pg add-user USER01 -p CREATEDB,LOGIN -c acid-minimal-cluster``` -Privileges can only be [SUPERUSER, REPLICATION, INHERIT, LOGIN, NOLOGIN, CREATEROLE, CREATEDB, BYPASSURL] +Privileges can only be [SUPERUSER, REPLICATION, INHERIT, LOGIN, NOLOGIN, CREATEROLE, CREATEDB, BYPASSRLS] Note: By default, a LOGIN user is created (unless NOLOGIN is specified). ## Adding databases to an existing cluster diff --git a/kubectl-pg/cmd/addUser.go b/kubectl-pg/cmd/addUser.go index 288af0836..602adb51d 100644 --- a/kubectl-pg/cmd/addUser.go +++ b/kubectl-pg/cmd/addUser.go @@ -35,7 +35,7 @@ import ( "k8s.io/apimachinery/pkg/types" ) -var allowedPrivileges = []string{"SUPERUSER", "REPLICATION", "INHERIT", "LOGIN", "NOLOGIN", "CREATEROLE", "CREATEDB", "BYPASSURL"} +var allowedPrivileges = []string{"SUPERUSER", "REPLICATION", "INHERIT", "LOGIN", "NOLOGIN", "CREATEROLE", "CREATEDB", "BYPASSRLS"} // addUserCmd represents the addUser command var addUserCmd = &cobra.Command{