clickhousecluster

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClickHouseContainerName         = "clickhouse"
	ClickHouseExporterContainerName = "exporter"
	InitContainerName               = "clickhouse-init"
)
View Source
const (
	ClusterPhaseInitial  = "Initializing"
	ClusterPhaseCreating = "Creating"
	ClusterPhaseUpdating = "Updating"
	ClusterPhaseRunning  = "Running"

	ShardPhaseRunning = "Running"
	ShardPhaseInitial = "Initializing"

	ShardIDLabelKey  = "shard-id"
	CreateByLabelKey = "created-by"
	ClusterLabelKey  = "clickhouse-cluster"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ClickHouseCluster Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func ParseXML

func ParseXML(s interface{}) string

Types

type Cluster

type Cluster struct {
	Shard []Shard `xml:"shard"`
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func (*Generator) FQDN

func (g *Generator) FQDN(shardID, replicasID int, namespace string) string

func (*Generator) GenerateCommonConfigMap

func (g *Generator) GenerateCommonConfigMap() *corev1.ConfigMap

type ReconcileClickHouseCluster

type ReconcileClickHouseCluster struct {
	// contains filtered or unexported fields
}

ReconcileClickHouseCluster reconciles a ClickHouseCluster object

func (*ReconcileClickHouseCluster) CheckDeletePVC

func (*ReconcileClickHouseCluster) CheckNonAllowedChanges

func (r *ReconcileClickHouseCluster) CheckNonAllowedChanges(instance *clickhousev1.ClickHouseCluster) bool

CheckNonAllowedChanges - checks if there are some changes on CRD that are not allowed on statefulset If a non Allowed Changed is Find we won't Update associated kubernetes objects, but we will put back the old value and Patch the CRD with correct values

func (*ReconcileClickHouseCluster) DeletePVCs

func (*ReconcileClickHouseCluster) Reconcile

func (*ReconcileClickHouseCluster) ScaleDownCluster

type RemoteServers

type RemoteServers struct {
	RemoteServer map[string]Cluster `xml:"remote_servers"`
}

type Replica

type Replica struct {
	Host string `xml:"host"`
	Port int    `xml:"port"`
}

type Shard

type Shard struct {
	InternalReplication bool      `xml:"internal_replication"`
	Replica             []Replica `xml:"replica"`
}

type Zookeeper

type Zookeeper struct {
	Zookeeper *v1.ZookeeperConfig `xml:"zookeeper"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL