Skip to content
Install the CLI

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.

StabilityExperimental
package valuepackages.experimental.cnpg-database
Default aliasesdatabase

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.

DependencyRequirement
cnpgOperatorRequired
postgresRequired
passwordOptional

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 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