For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Cennso PostgreSQL Schema Custom Resource Definition

You can use the Cennso PostgreSQL Schema Custom Resource (CR) to create logical databases. The Cennso PostgreSQL Schema CR is defined by a Custom Resource Definition (CRD)Opens in a new tab. This document covers all configuration parameters defined in the CRD.

For more information on how to deploy Cennso PostgreSQL Schema, see the Cennso PostgreSQL Schema document and Create a PostgreSQL database operation guide.

Configuration parameters

These are all parameters that you can use to configure the Cennso PostgreSQL Schema CR:

  • PostgreSQLSchemaKind
  • db.contrib.cennso.comGroup
  • v1alpha1Version
apiVersion:
db.contrib.cennso.com/v1alpha1
kind:
PostgreSQLSchema
plural:
postgresqlschemas
categories:
[composite]
Schema
  • apiVersionstringrequiredConstant"db.contrib.cennso.com/v1alpha1"
    APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More information: Kubernetes API conventionsOpens in a new tab.
  • kindstringrequiredConstant"PostgreSQLSchema"
    Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More information: Kubernetes API conventionsOpens in a new tab.
  • metadataobjectrequired
    Standard object metadata. More information: ObjectMetaOpens in a new tab.
  • specobjectrequired
    • dbInstanceNamestringrequired

      The metadata.name of the target PostgreSQLInstance for which you want to provision a database. The schema-provisioning Job connects to the <dbInstanceName>-pgbouncer.<namespace>.svc:5432 Kubernetes Service and uses the credentials from the <dbInstanceName>-pguser-<dbInstanceName> Kubernetes secret.

    • namespacestringrequired
      A Kubernetes Namespace on the Core Cluster where the target Cennso Database Instance is deployed
    • schemaNamestringrequired<= 63 characters

      Name of the logical database to create inside the target Cennso PostgreSQL Instance. Must be a valid, unquoted PostgreSQL identifier (a letter or underscore followed by letters, digits, or underscores, up to 63 bytes - PostgreSQL's NAMEDATALEN limit).

    • activeDeadlineSecondsinteger>= 1

      Wall-clock deadline in seconds, measured from the Job start time, after which the schema-provisioning Kubernetes Job is terminated and marked as failed. For more information, see the official documentationOpens in a new tab.

    • backoffLimitinteger>= 0

      Number of retries for the schema-provisioning Kubernetes Job before it is marked as failed. For more information, see the official documentationOpens in a new tab.

    • connectionSecretRefobject
      A reference to the Kubernetes secret that contains a valid kubeconfig to the target Core Cluster. When not set, the Cennso PostgreSQL Operator is deployed on the Management Cluster.
    • crossplaneobject
      Configures how Crossplane will reconcile this composite resource
    • imageobject
      Configuration of the image used by the schema-provisioning Job
    • imagePullSecretRefobject
      A reference to the Kubernetes secret that contains credentials to pull the image for the schema-provisioning Job
    • restartPolicystring

      Restart policy for the schema-provisioning Job pod. For more information, see the official documentationOpens in a new tab.

      Allowed values:"OnFailure""Never"
    • ttlSecondsAfterFinishedinteger>= 0

      Time-to-live in seconds for the schema-provisioning Kubernetes Job after it finishes (either Complete or Failed). When the TTL expires, the Job and its Pods can be cleaned up automatically. If omitted, the Job is not deleted automatically. For more information, see the official documentationOpens in a new tab.

  • statusobject
    • conditionsobject[]
      Conditions of the resource.
      x-kubernetes-list-map-keysx-kubernetes-list-type