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

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

Configuration parameters

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

  • DBUserKind
  • db.contrib.cennso.comGroup
  • v1alpha1Version
apiVersion:
db.contrib.cennso.com/v1alpha1
kind:
DBUser
plural:
dbusers
categories:
[claim]
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"DBUser"
    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
    • connectionSecretRefobjectrequired
      A reference to the Kubernetes secret that contains a valid kubeconfig to the target Core Cluster
    • dbInstanceNamestringrequired

      The metadata.name of the target DBInstance claim against which to provision the user. The user-provisioning Job connects to the ps-db-<dbInstanceName>-haproxy.<namespace>.svc:3306 Kubernetes Service and authenticates with root credentials from the ps-db-<dbInstanceName>-secrets Kubernetes Secret.

    • namespacestringrequired
      A Kubernetes Namespace on the Core Cluster where the target Cennso Database Instance is deployed
    • passwordSecretRefobjectrequired

      A reference to a Kubernetes Secret on the Core Cluster (in the same namespace as the provisioning Job) that contains the password for the user.

    • usernamestringrequired<= 32 characters
      MySQL account name to create. Must be a valid MySQL identifier (alphanumerics and underscore, up to 32 characters).
    • 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.

    • authPluginstring
      MySQL authentication plugin used when creating the account.
      Allowed values:"mysql_native_password""caching_sha2_password"
    • 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.

    • compositionRevisionRefobject
      Reference to a specific revision of the composition used to render this resource
    • compositionUpdatePolicystring
      Policy that controls how and when composition revisions are applied to this resource
      Allowed values:"Automatic""Manual"
    • grantsobject[]

      List of GRANT statements to apply to the user. Each item grants the listed privileges on the object identified by target.

    • hoststring<= 60 characters

      Host part of the MySQL account identity (e.g. %, localhost, or 10.0.0.%). Restricted to characters that appear in legitimate MySQL host specifications (letters, digits, _, ., -, : for IPv6, / for netmask, and the %/_ wildcards) so it cannot break out of the surrounding SQL string literal.

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

      Restart policy for the user-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 are eligible for automatic cleanup. If omitted, the Job is not deleted automatically. For more information, see the official documentationOpens in a new tab.

    • writeConnectionSecretToRefobject
      Reference to a Kubernetes Secret where connection details for the managed database will be written
  • statusobject
    • claimConditionTypesstring[]
      x-kubernetes-list-type
    • conditionsobject[]
      Conditions of the resource.
      x-kubernetes-list-map-keysx-kubernetes-list-type
    • kubernetesProviderConfigNamestring

      A name of the ProviderConfig.kubernetes.crossplane.io that was used by this resource to apply and manage Kubernetes objects.