v1alpha1

package
v0.0.0-...-d858eb7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "externalproviderconfig"
View Source
const ServiceAccountAnsibleJob = "ansible-job"

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

Functions

func NewScheme

func NewScheme() (*runtime.Scheme, error)

Types

type DynamicConfigElement

type DynamicConfigElement struct {
	Field   string            `json:"field"`
	Default *string           `json:"default,omitempty"`
	Values  map[string]string `json:"values"`
}

func (*DynamicConfigElement) DeepCopy

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.

func (*DynamicConfigElement) Lookup

func (dc *DynamicConfigElement) Lookup(key string) (string, bool)

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

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

func (*ExternalClusterProviderConfig) DeepCopyInto

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

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

func (*ExternalMachineProviderConfig) DeepCopyInto

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"
)

Jump to

Keyboard shortcuts

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