v1

package
v0.0.0-...-bbbf66a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1 defines version 1 of the API used with ClickHouse Installation Custom Resources.

Package v1 defines version 1 of the API used with ClickHouseKeeper custom resource.

Index

Constants

View Source
const (
	// APIVersion is the version of the ClickHouse Keeper Operator API.
	APIVersion = "v1"
)
View Source
const (
	ClickHouseKeeperInstallationCRDResourceKind = "ClickHouseKeeperInstallation"
)

Possible kinds of CRDs

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{
		Group:   clickhouse_keeper_altinity_com.APIGroupName,
		Version: APIVersion,
	}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{
		GroupVersion: SchemeGroupVersion,
	}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ChkCluster

type ChkCluster struct {
	Name   string            `json:"name,omitempty"         yaml:"name,omitempty"`
	Layout *ChkClusterLayout `json:"layout,omitempty"       yaml:"layout,omitempty"`
}

ChkCluster defines item of a clusters section of .configuration

func (*ChkCluster) DeepCopy

func (in *ChkCluster) DeepCopy() *ChkCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChkCluster.

func (*ChkCluster) DeepCopyInto

func (in *ChkCluster) DeepCopyInto(out *ChkCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ChkCluster) GetLayout

func (c *ChkCluster) GetLayout() *ChkClusterLayout

type ChkClusterLayout

type ChkClusterLayout struct {
	// The valid range of size is from 1 to 7.
	ReplicasCount int `json:"replicasCount,omitempty" yaml:"replicasCount,omitempty"`
}

ChkClusterLayout defines layout section of .spec.configuration.clusters

func NewChkClusterLayout

func NewChkClusterLayout() *ChkClusterLayout

NewChkClusterLayout creates new cluster layout

func (*ChkClusterLayout) DeepCopy

func (in *ChkClusterLayout) DeepCopy() *ChkClusterLayout

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChkClusterLayout.

func (*ChkClusterLayout) DeepCopyInto

func (in *ChkClusterLayout) DeepCopyInto(out *ChkClusterLayout)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ChkClusterLayout) GetReplicasCount

func (c *ChkClusterLayout) GetReplicasCount() int

type ChkConfiguration

type ChkConfiguration struct {
	Settings *apiChi.Settings `json:"settings,omitempty"  yaml:"settings,omitempty"`
	Clusters []*ChkCluster    `json:"clusters,omitempty"  yaml:"clusters,omitempty"`
}

ChkConfiguration defines configuration section of .spec

func NewConfiguration

func NewConfiguration() *ChkConfiguration

NewConfiguration creates new ChkConfiguration objects

func (*ChkConfiguration) DeepCopy

func (in *ChkConfiguration) DeepCopy() *ChkConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChkConfiguration.

func (*ChkConfiguration) DeepCopyInto

func (in *ChkConfiguration) DeepCopyInto(out *ChkConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ChkConfiguration) GetCluster

func (c *ChkConfiguration) GetCluster(i int) *ChkCluster

func (*ChkConfiguration) GetClusters

func (c *ChkConfiguration) GetClusters() []*ChkCluster

func (*ChkConfiguration) GetSettings

func (c *ChkConfiguration) GetSettings() *apiChi.Settings

func (*ChkConfiguration) MergeFrom

func (configuration *ChkConfiguration) MergeFrom(from *ChkConfiguration, _type apiChi.MergeType) *ChkConfiguration

MergeFrom merges from specified source

type ChkSpec

type ChkSpec struct {
	Configuration *ChkConfiguration `json:"configuration,omitempty"          yaml:"configuration,omitempty"`
	Templates     *apiChi.Templates `json:"templates,omitempty"              yaml:"templates,omitempty"`
}

ChkSpec defines spec section of ClickHouseKeeper resource

func (*ChkSpec) DeepCopy

func (in *ChkSpec) DeepCopy() *ChkSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChkSpec.

func (*ChkSpec) DeepCopyInto

func (in *ChkSpec) DeepCopyInto(out *ChkSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ChkSpec) EnsureConfiguration

func (spec ChkSpec) EnsureConfiguration() *ChkConfiguration

func (*ChkSpec) GetClientPort

func (spec *ChkSpec) GetClientPort() int

func (ChkSpec) GetConfiguration

func (spec ChkSpec) GetConfiguration() *ChkConfiguration

func (*ChkSpec) GetPath

func (spec *ChkSpec) GetPath() string

func (*ChkSpec) GetPort

func (spec *ChkSpec) GetPort(name string, defaultValue int) int

func (*ChkSpec) GetPrometheusPort

func (spec *ChkSpec) GetPrometheusPort() int

func (*ChkSpec) GetRaftPort

func (spec *ChkSpec) GetRaftPort() int

func (ChkSpec) GetTemplates

func (spec ChkSpec) GetTemplates() *apiChi.Templates

func (*ChkSpec) MergeFrom

func (spec *ChkSpec) MergeFrom(from *ChkSpec, _type apiChi.MergeType)

MergeFrom merges from spec

type ChkStatus

type ChkStatus struct {
	CHOpVersion string `json:"chop-version,omitempty"           yaml:"chop-version,omitempty"`
	CHOpCommit  string `json:"chop-commit,omitempty"            yaml:"chop-commit,omitempty"`
	CHOpDate    string `json:"chop-date,omitempty"              yaml:"chop-date,omitempty"`
	CHOpIP      string `json:"chop-ip,omitempty"                yaml:"chop-ip,omitempty"`

	Status string `json:"status,omitempty"                 yaml:"status,omitempty"`

	// Replicas is the number of number of desired replicas in the cluster
	Replicas int32 `json:"replicas,omitempty"`

	// ReadyReplicas is the number of number of ready replicas in the cluster
	ReadyReplicas []apiChi.ChiZookeeperNode `json:"readyReplicas,omitempty"`

	Pods                   []string                      `json:"pods,omitempty"                   yaml:"pods,omitempty"`
	PodIPs                 []string                      `json:"pod-ips,omitempty"                yaml:"pod-ips,omitempty"`
	FQDNs                  []string                      `json:"fqdns,omitempty"                  yaml:"fqdns,omitempty"`
	NormalizedCHK          *ClickHouseKeeperInstallation `json:"normalized,omitempty"             yaml:"normalized,omitempty"`
	NormalizedCHKCompleted *ClickHouseKeeperInstallation `json:"normalizedCompleted,omitempty"    yaml:"normalizedCompleted,omitempty"`
}

ChkStatus defines status section of ClickHouseKeeper resource

func (*ChkStatus) ClearNormalizedCHK

func (s *ChkStatus) ClearNormalizedCHK()

ClearNormalizedCHK clears normalized CHK in status

func (*ChkStatus) CopyFrom

func (s *ChkStatus) CopyFrom(from *ChkStatus, opts apiChi.CopyCHIStatusOptions)

CopyFrom copies the state of a given ChiStatus f into the receiver ChiStatus of the call.

func (*ChkStatus) DeepCopy

func (in *ChkStatus) DeepCopy() *ChkStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChkStatus.

func (*ChkStatus) DeepCopyInto

func (in *ChkStatus) DeepCopyInto(out *ChkStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ChkStatus) GetNormalizedCHK

func (s *ChkStatus) GetNormalizedCHK() *ClickHouseKeeperInstallation

GetNormalizedCHK gets target CHK

func (*ChkStatus) GetNormalizedCHKCompleted

func (s *ChkStatus) GetNormalizedCHKCompleted() *ClickHouseKeeperInstallation

GetNormalizedCHKCompleted gets completed CHI

func (*ChkStatus) HasNormalizedCHK

func (s *ChkStatus) HasNormalizedCHK() bool

HasNormalizedCHK is a checker

func (*ChkStatus) HasNormalizedCHKCompleted

func (s *ChkStatus) HasNormalizedCHKCompleted() bool

HasNormalizedCHKCompleted is a checker

type ClickHouseKeeperInstallation

type ClickHouseKeeperInstallation struct {
	meta.TypeMeta   `json:",inline"                     yaml:",inline"`
	meta.ObjectMeta `json:"metadata,omitempty"          yaml:"metadata,omitempty"`

	Spec   ChkSpec    `json:"spec"             yaml:"spec"`
	Status *ChkStatus `json:"status,omitempty" yaml:"status,omitempty"`

	Runtime ClickHouseKeeperInstallationRuntime `json:"-" yaml:"-"`
}

ClickHouseKeeperInstallation defines a ClickHouse Keeper ChkCluster

func (*ClickHouseKeeperInstallation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseKeeperInstallation.

func (*ClickHouseKeeperInstallation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClickHouseKeeperInstallation) DeepCopyObject

func (in *ClickHouseKeeperInstallation) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClickHouseKeeperInstallation) EnsureStatus

func (chk *ClickHouseKeeperInstallation) EnsureStatus() *ChkStatus

EnsureStatus ensures status

func (*ClickHouseKeeperInstallation) GetAncestor

GetAncestor gets ancestor of a CHI

func (*ClickHouseKeeperInstallation) GetStatus

func (chk *ClickHouseKeeperInstallation) GetStatus() *ChkStatus

GetStatus gets Status

func (*ClickHouseKeeperInstallation) GetTarget

GetTarget gets target of a CHI

func (*ClickHouseKeeperInstallation) HasAncestor

func (chk *ClickHouseKeeperInstallation) HasAncestor() bool

HasAncestor checks whether CHI has an ancestor

func (*ClickHouseKeeperInstallation) HasStatus

func (chk *ClickHouseKeeperInstallation) HasStatus() bool

HasStatus checks whether CHI has Status

func (*ClickHouseKeeperInstallation) HasTarget

func (chk *ClickHouseKeeperInstallation) HasTarget() bool

HasTarget checks whether CHI has a target

func (*ClickHouseKeeperInstallation) MergeFrom

MergeFrom merges from CHI

func (*ClickHouseKeeperInstallation) SetAncestor

SetAncestor sets ancestor of a CHI

func (*ClickHouseKeeperInstallation) SetTarget

SetTarget sets target of a CHI

type ClickHouseKeeperInstallationList

type ClickHouseKeeperInstallationList struct {
	meta.TypeMeta `json:",inline"  yaml:",inline"`
	meta.ListMeta `json:"metadata" yaml:"metadata"`
	Items         []ClickHouseKeeperInstallation `json:"items" yaml:"items"`
}

ClickHouseKeeperList defines a list of ClickHouseKeeper resources

func (*ClickHouseKeeperInstallationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseKeeperInstallationList.

func (*ClickHouseKeeperInstallationList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClickHouseKeeperInstallationList) DeepCopyObject

func (in *ClickHouseKeeperInstallationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClickHouseKeeperInstallationRuntime

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

func (*ClickHouseKeeperInstallationRuntime) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClickHouseKeeperInstallationRuntime.

func (*ClickHouseKeeperInstallationRuntime) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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