Documentation ¶
Index ¶
- func Config() *v1.OperatorConfig
- func GetClientset(kubeConfigFile, masterURL string) (*kube.Clientset, *apiextensions.Clientset, *chopclientset.Clientset)
- func New(kubeClient *kube.Clientset, chopClient *chopclientset.Clientset, ...)
- type CHOp
- type ConfigManager
- func (cm *ConfigManager) Config() *api.OperatorConfig
- func (cm *ConfigManager) GetRuntimeParam(name string) (string, bool)
- func (cm *ConfigManager) HasRuntimeParam(name string) bool
- func (cm *ConfigManager) Init() error
- func (cm *ConfigManager) IsConfigListed(config *api.ClickHouseOperatorConfiguration) bool
- func (cm *ConfigManager) Postprocess()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientset ¶
func GetClientset(kubeConfigFile, masterURL string) ( *kube.Clientset, *apiextensions.Clientset, *chopclientset.Clientset, )
GetClientset gets k8s API clients - both kube native client and our custom client
Types ¶
type CHOp ¶
type CHOp struct { // Version specifies version of the operator Version string // Commit specifies git commit of the operator Commit string // Date specified date when operator was built Date string // ConfigManager specifies configuration manager in charge of operator's configuration ConfigManager *ConfigManager }
CHOp defines ClickHouse Operator
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
ConfigManager specifies configuration manager in charge of operator's configuration
func NewConfigManager ¶
func NewConfigManager( kubeClient *kube.Clientset, chopClient *chopClientSet.Clientset, initConfigFilePath string, ) *ConfigManager
NewConfigManager creates new ConfigManager
func (*ConfigManager) Config ¶
func (cm *ConfigManager) Config() *api.OperatorConfig
Config is an access wrapper
func (*ConfigManager) GetRuntimeParam ¶
func (cm *ConfigManager) GetRuntimeParam(name string) (string, bool)
GetRuntimeParam gets specified runtime param
func (*ConfigManager) HasRuntimeParam ¶
func (cm *ConfigManager) HasRuntimeParam(name string) bool
HasRuntimeParam checks whether specified runtime param exists
func (*ConfigManager) Init ¶
func (cm *ConfigManager) Init() error
Init reads config from all sources
func (*ConfigManager) IsConfigListed ¶
func (cm *ConfigManager) IsConfigListed(config *api.ClickHouseOperatorConfiguration) bool
IsConfigListed checks whether specified ClickHouseOperatorConfiguration is listed in list of ClickHouseOperatorConfiguration(s)
func (*ConfigManager) Postprocess ¶
func (cm *ConfigManager) Postprocess()
Postprocess performs postprocessing of the configuration
Click to show internal directories.
Click to hide internal directories.