- API Reference
- Examples
PostgreSQLUser
Tiers
This feature is available for the following tiers: Standard, Premium.
Packages:
database.entigo.com/v1alpha1
Resource Types:
PostgreSQLUser
↩ Parent| 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
↩ Parent| 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 |
| inherit | boolean | Inherit privileges from granted roles. Default true. Default: true | false |
| login | boolean | Enable user login. Default true. Default: true | false |
PostgreSQLUser.spec.instanceRef
↩ Parent| Name | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the database instance the db should be created in | true |
Basic User
A minimal PostgreSQL User definition showing the required fields only.
apiVersion: database.entigo.com/v1alpha1
kind: PostgreSQLUser
metadata:
name: basic-user
spec:
instanceRef:
name: basic-instance
Prerequisites
The PostgreSQL User requires the following resource applied:
PostgreSQLInstance
apiVersion: database.entigo.com/v1alpha1
kind: PostgreSQLInstance
metadata:
name: basic-instance
spec:
storageGB: 20
version: "17.2"