Skip to content

Commit 35a7f2c

Browse files
committed
CRD Sync - User Management
Sync the PostgresCluster CustomResourceDefinition in the Kustomize and Helm installers with the latest CRD changes for user management.
1 parent a43654c commit 35a7f2c

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

helm/install/crds/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5639,6 +5639,46 @@ spec:
56395639
required:
56405640
- repoName
56415641
type: object
5642+
users:
5643+
description: Users to create inside PostgreSQL and the databases they
5644+
should access. The default creates one user that can access one
5645+
database matching the PostgresCluster name. An empty list creates
5646+
no users. Removing a user from this list does NOT drop the user
5647+
nor revoke their access.
5648+
items:
5649+
properties:
5650+
databases:
5651+
description: Databases to which this user can connect and create
5652+
objects. Removing a database from this list does NOT revoke
5653+
access. This field is ignored for the "postgres" user.
5654+
items:
5655+
description: 'PostgreSQL identifiers are limited in length
5656+
but may contain any character. More info: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS'
5657+
maxLength: 63
5658+
minLength: 1
5659+
type: string
5660+
type: array
5661+
x-kubernetes-list-type: set
5662+
name:
5663+
description: The name of this PostgreSQL user. The value may
5664+
contain only lowercase letters, numbers, and hyphen so that
5665+
it fits into Kubernetes metadata.
5666+
maxLength: 63
5667+
minLength: 1
5668+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
5669+
type: string
5670+
options:
5671+
description: 'ALTER ROLE options except for PASSWORD. This field
5672+
is ignored for the "postgres" user. More info: https://www.postgresql.org/docs/current/role-attributes.html'
5673+
pattern: ^[^;]*$
5674+
type: string
5675+
required:
5676+
- name
5677+
type: object
5678+
type: array
5679+
x-kubernetes-list-map-keys:
5680+
- name
5681+
x-kubernetes-list-type: map
56425682
required:
56435683
- backups
56445684
- instances
@@ -5722,6 +5762,10 @@ spec:
57225762
x-kubernetes-list-map-keys:
57235763
- type
57245764
x-kubernetes-list-type: map
5765+
databaseRevision:
5766+
description: Identifies the databases that have been installed into
5767+
PostgreSQL.
5768+
type: string
57255769
instances:
57265770
description: Current state of PostgreSQL instances.
57275771
items:
@@ -5990,6 +6034,9 @@ spec:
59906034
startupInstanceSet:
59916035
description: The instance set associated with the startupInstance
59926036
type: string
6037+
usersRevision:
6038+
description: Identifies the users that have been installed into PostgreSQL.
6039+
type: string
59936040
type: object
59946041
type: object
59956042
served: true

kustomize/install/bases/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5639,6 +5639,46 @@ spec:
56395639
required:
56405640
- repoName
56415641
type: object
5642+
users:
5643+
description: Users to create inside PostgreSQL and the databases they
5644+
should access. The default creates one user that can access one
5645+
database matching the PostgresCluster name. An empty list creates
5646+
no users. Removing a user from this list does NOT drop the user
5647+
nor revoke their access.
5648+
items:
5649+
properties:
5650+
databases:
5651+
description: Databases to which this user can connect and create
5652+
objects. Removing a database from this list does NOT revoke
5653+
access. This field is ignored for the "postgres" user.
5654+
items:
5655+
description: 'PostgreSQL identifiers are limited in length
5656+
but may contain any character. More info: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS'
5657+
maxLength: 63
5658+
minLength: 1
5659+
type: string
5660+
type: array
5661+
x-kubernetes-list-type: set
5662+
name:
5663+
description: The name of this PostgreSQL user. The value may
5664+
contain only lowercase letters, numbers, and hyphen so that
5665+
it fits into Kubernetes metadata.
5666+
maxLength: 63
5667+
minLength: 1
5668+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
5669+
type: string
5670+
options:
5671+
description: 'ALTER ROLE options except for PASSWORD. This field
5672+
is ignored for the "postgres" user. More info: https://www.postgresql.org/docs/current/role-attributes.html'
5673+
pattern: ^[^;]*$
5674+
type: string
5675+
required:
5676+
- name
5677+
type: object
5678+
type: array
5679+
x-kubernetes-list-map-keys:
5680+
- name
5681+
x-kubernetes-list-type: map
56425682
required:
56435683
- backups
56445684
- instances
@@ -5722,6 +5762,10 @@ spec:
57225762
x-kubernetes-list-map-keys:
57235763
- type
57245764
x-kubernetes-list-type: map
5765+
databaseRevision:
5766+
description: Identifies the databases that have been installed into
5767+
PostgreSQL.
5768+
type: string
57255769
instances:
57265770
description: Current state of PostgreSQL instances.
57275771
items:
@@ -5990,6 +6034,9 @@ spec:
59906034
startupInstanceSet:
59916035
description: The instance set associated with the startupInstance
59926036
type: string
6037+
usersRevision:
6038+
description: Identifies the users that have been installed into PostgreSQL.
6039+
type: string
59936040
type: object
59946041
type: object
59956042
served: true

0 commit comments

Comments
 (0)