Documentation
¶
Index ¶
- Constants
- Variables
- func NewScheme() (*runtime.Scheme, error)
- type DynamicConfigElement
- type ExternalClusterProviderConfig
- type ExternalMachineProviderConfig
- type ExternalProviderConfigCodec
- func (codec *ExternalProviderConfigCodec) ClusterProviderFromProviderConfig(providerConfig clusterv1.ProviderConfig) (*ExternalClusterProviderConfig, error)
- func (codec *ExternalProviderConfigCodec) DecodeFromProviderConfig(providerConfig clusterv1.ProviderConfig, out runtime.Object) error
- func (codec *ExternalProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) (*clusterv1.ProviderConfig, error)
- type FencingConfig
- type MachineRole
Constants ¶
const GroupName = "externalproviderconfig"
const ServiceAccountAnsibleJob = "ansible-job"
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
Functions ¶
Types ¶
type DynamicConfigElement ¶
type DynamicConfigElement struct { Field string `json:"field"` Default *string `json:"default,omitempty"` Values map[string]string `json:"values"` }
func (*DynamicConfigElement) DeepCopy ¶
func (in *DynamicConfigElement) DeepCopy() *DynamicConfigElement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigElement.
func (*DynamicConfigElement) DeepCopyInto ¶
func (in *DynamicConfigElement) DeepCopyInto(out *DynamicConfigElement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalClusterProviderConfig ¶
type ExternalClusterProviderConfig struct { metav1.TypeMeta `json:",inline"` Project string `json:"project"` FencingConfigs []FencingConfig `json:"fencingConfigs"` }
ExternalClusterProviderConfig provides machine configuration struct
func (*ExternalClusterProviderConfig) DeepCopy ¶
func (in *ExternalClusterProviderConfig) DeepCopy() *ExternalClusterProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalClusterProviderConfig.
func (*ExternalClusterProviderConfig) DeepCopyInto ¶
func (in *ExternalClusterProviderConfig) DeepCopyInto(out *ExternalClusterProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalClusterProviderConfig) DeepCopyObject ¶
func (in *ExternalClusterProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalMachineProviderConfig ¶
type ExternalMachineProviderConfig struct { metav1.TypeMeta `json:",inline"` // FencingConfig specify machine power management configuration FencingConfig *FencingConfig `json:"fencingConfig"` // Label give possibility to map between machine to specific configuration under configMap Label string `json:"label,omitempty"` // Roles specify which role will server machine under the cluster Roles []MachineRole `json:"roles,omitempty"` }
ExternalMachineProviderConfig provides machine configuration struct
func (*ExternalMachineProviderConfig) DeepCopy ¶
func (in *ExternalMachineProviderConfig) DeepCopy() *ExternalMachineProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMachineProviderConfig.
func (*ExternalMachineProviderConfig) DeepCopyInto ¶
func (in *ExternalMachineProviderConfig) DeepCopyInto(out *ExternalMachineProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalMachineProviderConfig) DeepCopyObject ¶
func (in *ExternalMachineProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalProviderConfigCodec ¶
type ExternalProviderConfigCodec struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false
func NewCodec ¶
func NewCodec() (*ExternalProviderConfigCodec, error)
func (*ExternalProviderConfigCodec) ClusterProviderFromProviderConfig ¶
func (codec *ExternalProviderConfigCodec) ClusterProviderFromProviderConfig(providerConfig clusterv1.ProviderConfig) (*ExternalClusterProviderConfig, error)
func (*ExternalProviderConfigCodec) DecodeFromProviderConfig ¶
func (codec *ExternalProviderConfigCodec) DecodeFromProviderConfig(providerConfig clusterv1.ProviderConfig, out runtime.Object) error
func (*ExternalProviderConfigCodec) EncodeToProviderConfig ¶
func (codec *ExternalProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) (*clusterv1.ProviderConfig, error)
type FencingConfig ¶
type FencingConfig struct { metav1.ObjectMeta `json:",inline"` // Container that handles machine operations Container *v1.Container `json:"container"` // Optional command to be used instead of the default when // handling machine Create operations (power-on/provisioning) CheckArgs []string `json:"checkArgs,omitempty"` // Optional command to be used instead of the default when // handling machine Create operations (power-on/provisioning) CreateArgs []string `json:"createArgs,omitempty"` // Optional command to be used instead of the default when // handling machine Delete operations (power-off/deprovisioning) DeleteArgs []string `json:"deleteArgs,omitempty"` // Optional command to be used instead of the default when // handling machine Update operations (reboot) RebootArgs []string `json:"rebootArgs,omitempty"` // Parameters common to all commands that may be passed as either // name/value pairs or "--name value" depending on the value of // ArgumentFormat Config map[string]string `json:"config"` // Parameters who’s value changes depending on the affected node // Not relevant if setting as part of the machine definition DynamicConfig []DynamicConfigElement `json:"dynamicConfig,omitempty"` // Secret contains fencing agent username and password Secret string `json:"secret"` // How long to wait for the Job to complete TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` // How long to wait before retrying failed Jobs RetrySeconds *int32 `json:"retrySeconds,omitempty"` // How long to wait before retrying failed Jobs Retries *int32 `json:"retries,omitempty"` // Volumes represent additional volumes that you want to attach // to the container Volumes []v1.Volume `json:"volumes,omitempty"` // Defines whether successful Jobs should be removed automatically // Might be usefull to turn off for debugging purposes NoSuccessfulJobsCleanup bool `json:"noSuccessfulJobsCleanup,omitempty"` }
func (*FencingConfig) DeepCopy ¶
func (in *FencingConfig) DeepCopy() *FencingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FencingConfig.
func (*FencingConfig) DeepCopyInto ¶
func (in *FencingConfig) DeepCopyInto(out *FencingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineRole ¶
type MachineRole string
const ( MasterRole MachineRole = "Master" NodeRole MachineRole = "Node" )