PostgreSQLUser
Kubernetes API reference for the PostgreSQLUser resource of Entigo Platform (database.entigo.com/v1alpha1).
On this page
Packages:
database.entigo.com/v1alpha1
Section titled “database.entigo.com/v1alpha1”Resource Types:
PostgreSQLUser
Section titled “PostgreSQLUser”| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | database.entigo.com/v1alpha1 | true |
| kind | string | PostgreSQLUser | true |
| metadata | object | Refer to the Kubernetes API documentation for the fields of the metadata field. | true |
| spec | object | false |
PostgreSQLUser.spec
Section titled “PostgreSQLUser.spec”| Name | Type | Description | Required |
|---|---|---|---|
| instanceRef | object | true | |
| createDb | boolean | Allow user to create new databases. Default false. Default: false | false |
| createRole | boolean | Allow user to create new users. Default false. Default: false | false |
| grant | object | false | |
| inherit | boolean | Inherit privileges from granted roles. Default true. Default: true | false |
| login | boolean | Enable user login. Default true. Default: true | false |
| name | string | Alternative, i.e. non kubernetes compliant name | false |
PostgreSQLUser.spec.instanceRef
Section titled “PostgreSQLUser.spec.instanceRef”| Name | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the database instance the db should be created in | true |
PostgreSQLUser.spec.grant
Section titled “PostgreSQLUser.spec.grant”| Name | Type | Description | Required |
|---|---|---|---|
| roles | []string | An array of role names to be granted. | false |
Basic User
A minimal PostgreSQL User definition showing the required fields only.apiVersion: database.entigo.com/v1alpha1kind: PostgreSQLUsermetadata: name: basic-userspec: instanceRef: name: basic-instanceA PostgreSQL User definition with role grant.
apiVersion: database.entigo.com/v1alpha1kind: PostgreSQLUsermetadata: name: user-examplespec: instanceRef: name: postgresql-example grant: roles: - example-rolePrerequisites
The PostgreSQL User requires the following resource applied:PostgreSQLInstance
Section titled “PostgreSQLInstance”apiVersion: database.entigo.com/v1alpha1kind: PostgreSQLInstancemetadata: name: basic-instancespec: allocatedStorage: 20 instanceType: db.t3.small engineVersion: "17.10"