API Reference for v1alpha1¶
Managed Postgres Operator's API documentation for version v1alpha1
The package managed-postgres-operator.hoppscale.com/v1alpha1 contains the following custom resources:
Packages¶
PostgresDatabase¶
PostgresDatabase represents a database in a PostgreSQL server.
| Field | Required | Description |
|---|---|---|
apiVersionstring |
managed-postgres-operator.hoppscale.com/v1alpha1 |
|
kindstring |
PostgresDatabase |
|
metadataObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. | |
specPostgresDatabaseSpec |
||
statusPostgresDatabaseStatus |
PostgresDatabaseSpec¶
PostgresDatabaseSpec holds the specification of a PostgreSQL database.
| Field | Required | Description |
|---|---|---|
namestring |
The database's name. | |
ownerstring |
Database's owner role. If omitted, the owner will be the operator's role. Default: "" |
|
extensions[]string |
List of the extensions to install in the database. Default: [] |
|
keepOnDeletebool |
On true, the Kubernetes resource deletion will not delete the associated PostgreSQL database.Default: false |
|
preserveConnectionsOnDeletebool |
On true, the operator will drop all connections before deleting the PostgreSQL database.Default: false |
|
privilegesByRolemap[string]DatabasePrivilegesSpec |
For a given role, grant privileges on the database. Default: {} |
PostgresDatabasePrivilegesSpec¶
| Field | Required | Description |
|---|---|---|
createbool |
On true, grant CREATE privilege on the database to the role.Default: false |
|
connectbool |
On true, grant CONNECT privilege on the database to the role.Default: false |
|
temporarybool |
On true, grant TEMPORARY privilege on the database to the role.Default: false |
PostgresDatabaseStatus¶
| Field | Description |
|---|---|
succeededbool |
Whether the database is has been successfully reconciled or not. |
PostgresRole¶
PostgresRole represents a role in a PostgreSQL server.
This resource aims to implement most of the PostgreSQL role's parameters: https://www.postgresql.org/docs/current/sql-createrole.html.
| Field | Required | Description |
|---|---|---|
apiVersionstring |
managed-postgres-operator.hoppscale.com/v1alpha1 |
|
kindstring |
PostgresRole |
|
metadataObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. | |
role specPostgresRoleSpec |
||
statusPostgresRoleStatus |
PostgresRoleSpec¶
PostgresRoleSpec holds the specification of a PostgreSQL role.
| Field | Required | Description |
|---|---|---|
namestring |
The role's name. | |
superUserbool |
On true, the role is a "superuser" who can override all access restrictions within the database.Default: false |
|
createDBbool |
On true, the role is allowed to create new databases.Default: false |
|
createRolebool |
On true, the role is allowed to create, alter, drop, comment on, and change the security label for other roles.Default: false |
|
inheritbool |
On true, the role inherit the permissions of the role of which it is member.Default: false |
|
loginbool |
On true, the role is allowed to log in.Default: false |
|
replicationbool |
On true, the role is a replication role.Default: false |
|
bypassRLSbool |
On true, the role bypasses every row-level security (RLS) policy.Default: false |
|
keepOnDeletebool |
On true, the Kubernetes resource deletion will not delete the associated PostgreSQL role.Default: false |
|
passwordFromSecretPostgresRolePasswordFromSecret |
Reference to a Secret containing the role's password. Default: null |
|
secretNamestring |
Name of the Secret the operator should create, containing the role's log in information. Default: "" |
|
secretTemplatemap[string]string |
Dictionnary containing the key/value to configure in the Secret created by the operator (cf. secretName).Default: {} |
|
memberOfRoles[]string |
List of role's names of which the role should be member of. Default: [] |
PostgresRoleStatus¶
| Field | Description |
|---|---|
succeededbool |
Whether the role is has been successfully reconciled or not. |
PostgresSchema¶
PostgresSchema represents a schema in a PostgreSQL server.
| Field | Required | Description |
|---|---|---|
apiVersionstring |
managed-postgres-operator.hoppscale.com/v1alpha1 |
|
kindstring |
PostgresSchema |
|
metadataObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. | |
specPostgresSchemaSpec |
||
statusPostgresRoleStatus |
PostgresSchemaSpec¶
PostgresSchemaSpec holds the specification of a PostgreSQL schema.
| Field | Required | Description |
|---|---|---|
databasestring |
The database's name containing the schema. | |
namebool |
The schema's name. | |
ownerbool |
Schema's owner role. If omitted, the owner will be the database's owner. Default: "" |
|
keepOnDeletebool |
On true, the Kubernetes resource deletion will not delete the associated PostgreSQL schema.Default: false |
|
privilegesByRolemap[string]PostgresSchemaPrivilegesSpec |
For a given role, grant privileges on the schema. Default: {} |
PostgresSchemaPrivilegesSpec¶
| Field | Required | Description |
|---|---|---|
createbool |
On true, grant CREATE privilege on the schema to the role.Default: false |
|
usagebool |
On true, grant USAGE privilege on the schema to the role.Default: false |
PostgresSchemaStatus¶
| Field | Description |
|---|---|
succeededbool |
Whether the schema has been successfully reconciled or not. |