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 User Custom Resource Definition

You can use the Cennso PostgreSQL User Custom Resource (CR) to create database user accounts. The Cennso PostgreSQL User 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 User, see the Cennso PostgreSQL User document and Create a PostgreSQL user operation guide.

Configuration parameters

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

  • PostgreSQLUserKind
  • db.contrib.cennso.comGroup
  • v1alpha1Version
apiVersion:
db.contrib.cennso.com/v1alpha1
kind:
PostgreSQLUser
plural:
postgresqlusers
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"PostgreSQLUser"
    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
    x-kubernetes-validations
    • dbInstanceNamestringrequired

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

    • namespacestringrequired

      A Kubernetes Namespace on the Core Cluster where the target PostgreSQLInstance is deployed.

    • passwordSecretRefobjectrequired

      A reference to a Kubernetes Secret in spec.namespace on the target cluster that contains the password for the user.

    • usernamestringrequired<= 63 characters

      A roleOpens in a new tab name to create. The role is created with the LOGIN attribute. Must be a valid, unquoted PostgreSQL identifier (a letter or underscore followed by letters, digits, or underscores, up to 63 bytes).

    • activeDeadlineSecondsinteger>= 1

      Wall-clock deadline in seconds, measured from the Job start time, after which the user-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 user-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
    • databaseOwnerstring<= 64 characters

      The name of a PostgreSQL logical database that the user owns. The owner has full control of the database, including its public schema.

    • grantScopestring

      The kind of the PostgreSQL object named in spec.target. A SCHEMA or TABLE must be in the default database of the instance, because the provisioning Job connects to that database. To give the user its own database, use spec.databaseOwner instead. Required when spec.privileges is not empty.

      Allowed values:"DATABASE""SCHEMA""TABLE"
    • imageobject
      Configuration of the image used by the user-provisioning Job
    • imagePullSecretRefobject
      A reference to the Kubernetes secret that contains credentials to pull the image for the user-provisioning Job
    • privilegesstring[]

      PostgreSQL privileges to grant to the user. The grants apply to the object named in spec.target, whose kind is specified by spec.grantScope. Both fields are required when this list is not empty. Leave the list empty to create the user without grants.

    • restartPolicystring

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

      Allowed values:"OnFailure""Never"
    • targetstring<= 64 characters

      The name of the PostgreSQL object that spec.privileges are granted on. Its kind is set by spec.grantScope. Must be a plain identifier of letters, digits, and underscores, up to 64 characters, without a schema prefix. Required when spec.privileges is not empty.

    • ttlSecondsAfterFinishedinteger>= 0

      Time-to-live in seconds for the user-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