Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubernetesConfig ¶
func KubernetesConfig(name string) []go_hook.KubernetesConfig
Types ¶
type ConfigBuilder ¶
type ConfigBuilder struct {
ModeParams ModeParams
ActualParams []ModeParams
MasterNodesIPs []string
}
type DirectModeParams ¶
type Inputs ¶
type Inputs struct {
IsSecretExist bool
MasterNodesIPs []string
NodeStatus map[string]InputsNodeStatus
}
type InputsNodeStatus ¶
type ModeParams ¶
type ModeParams struct {
Direct *DirectModeParams `json:"direct,omitempty" yaml:"direct,omitempty"`
Unmanaged *UnmanagedModeParams `json:"unmanaged,omitempty" yaml:"unmanaged,omitempty"`
}
type Params ¶
type Params struct {
ModeParams ModeParams
RegistrySecret deckhouse_registry.Config
}
type Result ¶
func PreflightCheck ¶
type State ¶
type State struct {
UnmanagedParams *UnmanagedModeParams `json:"unmanaged_params,omitempty" yaml:"unmanaged_params,omitempty"`
ActualParams *ModeParams `json:"actual_params,omitempty" yaml:"actual_params,omitempty"`
Config *Config `json:"config,omitempty" yaml:"config,omitempty"`
}
func (*State) FinalizeTransition ¶
FinalizeTransition replaces the existing config with the new one. Should be called after successful Transition Stage.
func (*State) FinalizeUnmanagedTransition ¶
func (s *State) FinalizeUnmanagedTransition(registrySecret deckhouse_registry.Config, inputs Inputs) (Result, error)
FinalizeUnmanagedTransition handles the transition away from managed configuration mode. If the registry secret is not present, the internal state is cleared and the transition is considered complete. If the secret is present – we preserve and support its configuration instead of using Deckhouse registry secret.
type UnmanagedModeParams ¶
Click to show internal directories.
Click to hide internal directories.