Reference / experimental
cnpg-database
These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.
Logical database + role provisioned on a CloudNativePG cluster
This page is generated from kix/packages/experimental/cnpg-database.
| Stability | Experimental |
package value | packages.experimental.cnpg-database |
| Default aliases | database |
Dependencies
Section titled “Dependencies”Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.
| Dependency | Requirement |
|---|---|
cnpgOperator | Required |
postgres | Required |
password | Optional |
Options
Section titled “Options”database
Section titled “database”PostgreSQL database name to create: a letter or underscore, then up to 62 letters, digits, underscores, or hyphens. postgres, template0, and template1 are refused.
- Type:
string matching the pattern [A-Za-z_][A-Za-z0-9_-]{0,62} - Default: the instance name
extensions
Section titled “extensions”Extensions to create on the new database (the Database’s
spec.extensions), as a name or { name; version; }. They must ship
in the cluster’s operand image.
- Type:
list of (string or (submodule)) - Default:
[ ]
PostgreSQL role name to create, which owns the database: a letter or underscore, then up to 62 letters, digits, underscores, or hyphens. CloudNativePG’s reserved names are refused.
- Type:
string matching the pattern [A-Za-z_][A-Za-z0-9_-]{0,62} - Default: the instance name