Documentation ¶
Index ¶
- func CreateClientService(chk *api.ClickHouseKeeperInstallation) *core.Service
- func CreateConfigMap(chk *api.ClickHouseKeeperInstallation) *core.ConfigMap
- func CreateHeadlessService(chk *api.ClickHouseKeeperInstallation) *core.Service
- func CreatePodDisruptionBudget(chk *api.ClickHouseKeeperInstallation) *policy.PodDisruptionBudget
- func CreateStatefulSet(chk *api.ClickHouseKeeperInstallation) *apps.StatefulSet
- func GetPodLabels(chk *api.ClickHouseKeeperInstallation) map[string]string
- func GetReplicasCount(chk *api.ClickHouseKeeperInstallation) int
- type Normalizer
- type NormalizerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientService ¶
func CreateClientService(chk *api.ClickHouseKeeperInstallation) *core.Service
CreateClientService returns a client service resource for the clickhouse keeper cluster
func CreateConfigMap ¶
func CreateConfigMap(chk *api.ClickHouseKeeperInstallation) *core.ConfigMap
CreateConfigMap returns a config map containing ClickHouse Keeper config XML
func CreateHeadlessService ¶
func CreateHeadlessService(chk *api.ClickHouseKeeperInstallation) *core.Service
CreateHeadlessService returns an internal headless-service for the chk stateful-set
func CreatePodDisruptionBudget ¶
func CreatePodDisruptionBudget(chk *api.ClickHouseKeeperInstallation) *policy.PodDisruptionBudget
CreatePodDisruptionBudget returns a pdb for the clickhouse keeper cluster
func CreateStatefulSet ¶
func CreateStatefulSet(chk *api.ClickHouseKeeperInstallation) *apps.StatefulSet
CreateStatefulSet return a clickhouse keeper stateful set from the chk spec
func GetPodLabels ¶
func GetPodLabels(chk *api.ClickHouseKeeperInstallation) map[string]string
func GetReplicasCount ¶
func GetReplicasCount(chk *api.ClickHouseKeeperInstallation) int
Types ¶
type Normalizer ¶
type Normalizer struct {
// contains filtered or unexported fields
}
Normalizer specifies structures normalizer
func (*Normalizer) CreateTemplatedCHK ¶
func (n *Normalizer) CreateTemplatedCHK( chk *apiChk.ClickHouseKeeperInstallation, options *normalizer.Options, ) (*apiChk.ClickHouseKeeperInstallation, error)
CreateTemplatedCHK produces ready-to-use CHK object
type NormalizerContext ¶
type NormalizerContext struct {
// contains filtered or unexported fields
}
NormalizerContext specifies CHI-related normalization context
func NewNormalizerContext ¶
func NewNormalizerContext(options *normalizer.Options) *NormalizerContext
NewNormalizerContext creates new NormalizerContext
Click to show internal directories.
Click to hide internal directories.