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]
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.metadataobjectrequiredStandard object metadata. More information: ObjectMetaOpens in a new tab.specobjectrequiredconnectionSecretRefobjectrequiredA reference to the Kubernetes secret that contains a valid kubeconfig to the target Core ClusterdbInstanceNamestringrequiredThe
metadata.nameof the targetDBInstanceclaim against which to provision the user. The user-provisioning Job connects to theps-db-<dbInstanceName>-haproxy.<namespace>.svc:3306Kubernetes Service and authenticates with root credentials from theps-db-<dbInstanceName>-secretsKubernetes Secret.namespacestringrequiredA Kubernetes Namespace on the Core Cluster where the target Cennso Database Instance is deployedpasswordSecretRefobjectrequiredA reference to a Kubernetes Secret on the Core Cluster (in the same
namespaceas the provisioning Job) that contains the password for the user.usernamestringrequired<= 32 charactersMySQL account name to create. Must be a valid MySQL identifier (alphanumerics and underscore, up to 32 characters).activeDeadlineSecondsinteger>= 1Wall-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.
authPluginstringMySQL authentication plugin used when creating the account.Allowed values:"mysql_native_password""caching_sha2_password"backoffLimitinteger>= 0Number 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.
compositionRevisionRefobjectReference to a specific revision of the composition used to render this resourcecompositionUpdatePolicystringPolicy that controls how and when composition revisions are applied to this resourceAllowed values:"Automatic""Manual"grantsobject[]List of GRANT statements to apply to the user. Each item grants the listed
privilegeson the object identified bytarget.hoststring<= 60 charactersHost part of the MySQL account identity (e.g.
%,localhost, or10.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.imageobjectConfiguration of the image used by the user-provisioning JobimagePullSecretRefobjectA reference to the Kubernetes secret that contains credentials to pull the image for the user-provisioning JobrestartPolicystringRestart policy for the user-provisioning Job pod. For more information, see the official documentationOpens in a new tab.
Allowed values:"OnFailure""Never"ttlSecondsAfterFinishedinteger>= 0Time-to-live in seconds for the schema-provisioning Kubernetes Job after it finishes (either
CompleteorFailed). 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.writeConnectionSecretToRefobjectReference to a Kubernetes Secret where connection details for the managed database will be written
statusobjectclaimConditionTypesstring[]x-kubernetes-list-typeconditionsobject[]Conditions of the resource.x-kubernetes-list-map-keysx-kubernetes-list-typekubernetesProviderConfigNamestringA name of the
ProviderConfig.kubernetes.crossplane.iothat was used by this resource to apply and manage Kubernetes objects.