# Functions
NewChiCleanup creates new cleanup.
NewChiClusterLayout creates new cluster layout.
NewChiDefaults creates new ChiDefaults object.
NewChiDistributedDDL creates new ChiDistributedDDL.
NewChiHostReconcileAttributes creates new reconcile attributes.
NewChiObjectsCleanup creates new object cleanup.
NewChiReconciling creates new reconciling.
NewChiTemplateNames creates new ChiTemplateNames object.
NewChiTemplates creates new ChiTemplate object.
NewChiTemplating creates new templating.
NewChiZookeeperConfig creates new ChiZookeeperConfig object.
NewConfiguration creates new Configuration objects.
NewHostsField creates new field of hosts.
NewHostTemplatesIndex creates new HostTemplatesIndex object.
NewPodTemplatesIndex creates new PodTemplatesIndex object.
NewPVCReclaimPolicyFromString creates new PVCReclaimPolicy from string.
NewServiceTemplatesIndex creates new ServiceTemplatesIndex object.
NewSettings creates new settings.
NewSettingScalar makes new scalar Setting.
NewSettingVector makes new vector Setting.
NewVolumeClaimTemplatesIndex creates new VolumeClaimTemplatesIndex object.
Resource returns schema.GroupResource.
# Constants
CHOP_CONFIG clickhouse operator configuration.
Possible kinds of CRDs.
Possible kinds of CRDs.
Possible kinds of CRDs.
CommonConfigDir specifies folder's name, where generated common XML files for ClickHouse would be placed.
DefaultReconcileSystemThreadsNumber specifies default number of system controller threads running concurrently.
DefaultReconcileThreadsWarmup specifies default reconcile threads warmup time.
HostConfigDir specifies folder's name, where generated host XML files for ClickHouse would be placed.
Possible merge types.
Possible merge types.
Possible objects cleanup options.
Possible objects cleanup options.
Possible objects cleanup options.
What to do in case StatefulSet can't reach new Generation - abort CHI reconcile.
What to do in case StatefulSet can't reach new Generation - delete newly created problematic StatefulSet.
What to do in case StatefulSet can't reach new Generation - do nothing, keep StatefulSet broken and move to the next.
What to do in case StatefulSet can't reach new Generation - abort CHI reconcile.
What to do in case StatefulSet can't reach new Generation - do nothing, keep StatefulSet broken and move to the next.
What to do in case StatefulSet can't reach new Generation - delete Pod and rollback StatefulSet to previous Generation Pod would be recreated by StatefulSet based on rollback-ed configuration.
OPERATOR_CONTAINER_CPU_LIMIT from .containers.resources.limits.cpu.
OPERATOR_CONTAINER_CPU_REQUEST from .containers.resources.requests.cpu.
OPERATOR_CONTAINER_MEM_LIMIT from .containers.resources.limits.memory.
OPERATOR_CONTAINER_MEM_REQUEST from .containers.resources.requests.memory.
OPERATOR_POD_IP ip from status.podIP: 100.96.3.2.
OPERATOR_POD_NAME name from metadata.name: clickhouse-operator-6f87589dbb-ftcsf.
OPERATOR_POD_NAMESPACE name from metadata.namespace: kube-system.
OPERATOR_POD_NODE_NAME name from spec.nodeName: ip-172-20-52-62.ec2.internal.
OPERATOR_POD_SERVICE_ACCOUNT service account spec.serviceAccount: clickhouse-operator spec.serviceAccountName: clickhouse-operator.
Username/password replacers.
Possible pod distributions.
Possible pod distributions.
Possible pod distributions.
Shortcuts section.
AntiAffinity section.
Possible pod distributions.
Possible pod distributions.
Misc section.
Possible pod distributions.
Affinity section.
Deprecated value.
Possible pod distributions.
Possible pod distributions.
Possible pod distributions.
Pods from different ClickHouseInstallations can co-exist on one node.
Pods from different ClickHouseInstallation.Cluster can co-exist on one node.
No Pods can co-exist on one node.
Pods from different Namespaces can co-exist on one node.
Pods from different ClickHouseInstallation.Cluster.Replica can co-exist on one node.
Pods from different ClickHouseInstallation.Cluster.Shard can co-exist on one node.
Possible pod distributions.
Possible pod distributions.
Possible pod distributions.
Possible pod distributions.
Possible port distributions.
Possible port distributions.
Possible values of PVC reclaim policy.
Possible values of PVC reclaim policy.
Possible reconcile policy values.
Possible reconcile policy values.
Possible reconcile policy values.
Restart const presents possible values for .spec.restart.
Restart const presents possible values for .spec.restart.
Possible values for StatefulSet status.
Possible values for StatefulSet status.
Possible values for StatefulSet status.
Possible values for StatefulSet status.
Possible CHI statuses.
Possible CHI statuses.
Possible CHI statuses.
TemplatesDir specifies folder's name where ClickHouseInstallationTemplates are located.
Possible templating policies.
Possible templating policies.
Username/password replacers.
UsersConfigDir specifies folder's name, where generated users XML files for ClickHouse would be placed.
WATCH_NAMESPACE and WATCH_NAMESPACES specifies what namespaces to watch.
WATCH_NAMESPACES and WATCH_NAMESPACE specifies what namespaces to watch.
# Variables
AddToScheme applies SchemeBuilder functions to the specified scheme.
SchemeBuilder collects scheme builder functions.
SchemeGroupVersion is group version used to register these objects.
Configuration sections Each section translates into separate ConfigMap mapped into Pod.
Configuration sections Each section translates into separate ConfigMap mapped into Pod.
Configuration sections Each section translates into separate ConfigMap mapped into Pod.
Configuration sections Each section translates into separate ConfigMap mapped into Pod.
# Structs
ChiCleanup defines cleanup.
ChiCluster defines item of a clusters section of .configuration.
ChiClusterAddress defines address of a cluster within ClickHouseInstallation.
ChiClusterLayout defines layout section of .spec.configuration.clusters.
ChiDefaults defines defaults section of .spec.
ChiDistributedDDL defines distributedDDL section of .spec.defaults.
ChiHost defines host (a data replica within a shard) of .spec.configuration.clusters[n].shards[m].
ChiHostAddress defines address of a host within ClickHouseInstallation.
ChiHostConfig defines additional data related to a host.
ChiHostReconcileAttributes defines host reconcile status.
ChiHostTemplate defines full Host Template.
ChiObjectsCleanup specifies object cleanup struct.
ChiPodDistribution defines pod distribution.
ChiPodTemplate defines full Pod Template, directly used by StatefulSet.
ChiPodTemplateZone defines pod template zone.
ChiPortDistribution defines port distribution.
ChiReconciling defines CHI reconciling struct.
ChiReplica defines item of a replica section of .spec.configuration.clusters[n].replicas TODO unify with ChiShard based on HostsSet.
ChiReplicaAddress defines address of a replica within ClickHouseInstallation.
ChiServiceTemplate defines CHI service template.
ChiShard defines item of a shard section of .spec.configuration.clusters[n].shards TODO unify with ChiReplica based on HostsSet.
ChiShardAddress defines address of a shard within ClickHouseInstallation.
ChiSpec defines spec section of ClickHouseInstallation resource.
ChiStatus defines status section of ClickHouseInstallation resource.
ChiTemplateNames defines references to .spec.templates to be used on current level of cluster.
ChiTemplates defines templates section of .spec.
ChiTemplating defines templating policy struct.
ChiUseTemplate defines UseTemplate section of ClickHouseInstallation resource.
ChiVolumeClaimTemplate defines PersistentVolumeClaim Template, directly used by StatefulSet.
ChiZookeeperConfig defines zookeeper section of .spec.configuration Refers to https://clickhouse.yandex/docs/en/single/index.html?#server-settings_zookeeper.
ChiZookeeperNode defines item of nodes section of .spec.configuration.zookeeper.
ClickHouseInstallation defines the Installation of a ClickHouse Database Cluster.
ClickHouseInstallationList defines a list of ClickHouseInstallation resources.
ClickHouseInstallationTemplateList defines CHI template list.
ClickHouseOperatorConfiguration defines CHOp config.
ClickHouseOperatorConfigurationList defines CHI operator config list.
Configuration defines configuration section of .spec.
HostsField specifies field of hosts.
HostTemplatesIndex describes index of host templates.
OperatorConfig specifies operator configuration !!! IMPORTANT !!! !!! IMPORTANT !!! !!! IMPORTANT !!! !!! IMPORTANT !!! !!! IMPORTANT !!! Do not forget to update func (config *OperatorConfig) String() Do not forget to update CRD spec.
PodTemplatesIndex describes index of pod templates.
ServiceTemplatesIndex describes index of service templates.
Setting represents one settings, which can be either a sting or a vector of strings.
Settings specifies settings.
VolumeClaimTemplatesIndex describes index of volume claim templates.
# Type aliases
ClickHouseInstallationTemplate defines ClickHouseInstallation template.
MergeType specifies merge types type.
PVCReclaimPolicy defines PVC reclaim policy.
SettingsSection specifies settings section.
StatefulSetStatus specifies StatefulSet status.