# db-operator-instance

DB Operator DbInstance that registers a PostgreSQL server and its admin credentials

This page is generated from [`kix/packages/experimental/db-operator-instance`](https://github.com/kix-run/kix/tree/main/kix/packages/experimental/db-operator-instance).

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.db-operator-instance` |
| Default aliases | `dbInstance` |

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `adminCredentials` | Required |
| `dbOperator` | Required |
| `postgres` | Required |

## Options

### `auth.passwordKey`

Secret key in `deps.adminCredentials` that holds the PostgreSQL admin password.

- **Type:** `string matching the pattern [-._a-zA-Z0-9]+`
- **Default:** `"password"`

### `auth.usernameKey`

Secret key in `deps.adminCredentials` that holds the PostgreSQL admin username.

- **Type:** `string matching the pattern [-._a-zA-Z0-9]+`
- **Default:** `"username"`

### `extraSpec`

Additional fields merged into the `DbInstance` `spec`, such as
`namespaceFilters` or `endpoint.sslConnection`. Each entry in
`namespaceFilters` is a Go regular expression matched anywhere in the
namespace name, so anchor exact names like `"^apps$"`. Kix rejects `engine`,
`auth`, `endpoint.host`, and `endpoint.port` here because this package sets
them.

- **Type:** `attribute set of anything`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    namespaceFilters = [
      "^apps$"
    ];
  }
  ```