cluster

package
v0.0.0-...-f2730a8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	InternalCluster = builders.NewInternalResource(
		"clusters",
		"Cluster",
		func() runtime.Object { return &Cluster{} },
		func() runtime.Object { return &ClusterList{} },
	)
	InternalClusterStatus = builders.NewInternalResourceStatus(
		"clusters",
		"ClusterStatus",
		func() runtime.Object { return &Cluster{} },
		func() runtime.Object { return &ClusterList{} },
	)
	InternalMachine = builders.NewInternalResource(
		"machines",
		"Machine",
		func() runtime.Object { return &Machine{} },
		func() runtime.Object { return &MachineList{} },
	)
	InternalMachineStatus = builders.NewInternalResourceStatus(
		"machines",
		"MachineStatus",
		func() runtime.Object { return &Machine{} },
		func() runtime.Object { return &MachineList{} },
	)
	InternalMachineClass = builders.NewInternalResource(
		"machineclasses",
		"MachineClass",
		func() runtime.Object { return &MachineClass{} },
		func() runtime.Object { return &MachineClassList{} },
	)
	InternalMachineClassStatus = builders.NewInternalResourceStatus(
		"machineclasses",
		"MachineClassStatus",
		func() runtime.Object { return &MachineClass{} },
		func() runtime.Object { return &MachineClassList{} },
	)
	InternalMachineDeployment = builders.NewInternalResource(
		"machinedeployments",
		"MachineDeployment",
		func() runtime.Object { return &MachineDeployment{} },
		func() runtime.Object { return &MachineDeploymentList{} },
	)
	InternalMachineDeploymentStatus = builders.NewInternalResourceStatus(
		"machinedeployments",
		"MachineDeploymentStatus",
		func() runtime.Object { return &MachineDeployment{} },
		func() runtime.Object { return &MachineDeploymentList{} },
	)
	InternalMachineSet = builders.NewInternalResource(
		"machinesets",
		"MachineSet",
		func() runtime.Object { return &MachineSet{} },
		func() runtime.Object { return &MachineSetList{} },
	)
	InternalMachineSetStatus = builders.NewInternalResourceStatus(
		"machinesets",
		"MachineSetStatus",
		func() runtime.Object { return &MachineSet{} },
		func() runtime.Object { return &MachineSetList{} },
	)
	// Registered resources and subresources
	ApiVersion = builders.NewApiGroup("cluster.k8s.io").WithKinds(
		InternalCluster,
		InternalClusterStatus,
		InternalMachine,
		InternalMachineStatus,
		InternalMachineClass,
		InternalMachineClassStatus,
		InternalMachineDeployment,
		InternalMachineDeploymentStatus,
		InternalMachineSet,
		InternalMachineSetStatus,
	)

	// Required by code generated by go2idl
	AddToScheme   = ApiVersion.SchemaBuilder.AddToScheme
	SchemeBuilder = ApiVersion.SchemaBuilder

	SchemeGroupVersion = ApiVersion.GroupVersion
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Required by code generated by go2idl Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type APIEndpoint

type APIEndpoint struct {
	Host string
	Port int
}

func (*APIEndpoint) DeepCopy

func (in *APIEndpoint) DeepCopy() *APIEndpoint

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

func (*APIEndpoint) DeepCopyInto

func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Cluster

type Cluster struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec   ClusterSpec
	Status ClusterStatus
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cluster) DeepCopyObject

func (in *Cluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (Cluster) GetGeneration

func (pc Cluster) GetGeneration() int64

func (*Cluster) GetObjectMeta

func (pc *Cluster) GetObjectMeta() *metav1.ObjectMeta

func (*Cluster) GetSpec

func (pc *Cluster) GetSpec() interface{}

func (*Cluster) GetStatus

func (pc *Cluster) GetStatus() interface{}

func (Cluster) NewStatus

func (Cluster) NewStatus() interface{}

func (*Cluster) SetGeneration

func (pc *Cluster) SetGeneration(generation int64)

func (*Cluster) SetSpec

func (pc *Cluster) SetSpec(s interface{})

func (*Cluster) SetStatus

func (pc *Cluster) SetStatus(s interface{})

type ClusterList

type ClusterList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Cluster
}

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterList) DeepCopyObject

func (in *ClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterNetworkingConfig

type ClusterNetworkingConfig struct {
	Services      NetworkRanges
	Pods          NetworkRanges
	ServiceDomain string
}

func (*ClusterNetworkingConfig) DeepCopy

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

func (*ClusterNetworkingConfig) DeepCopyInto

func (in *ClusterNetworkingConfig) DeepCopyInto(out *ClusterNetworkingConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterRegistry

type ClusterRegistry interface {
	ListClusters(ctx request.Context, options *internalversion.ListOptions) (*ClusterList, error)
	GetCluster(ctx request.Context, id string, options *metav1.GetOptions) (*Cluster, error)
	CreateCluster(ctx request.Context, id *Cluster) (*Cluster, error)
	UpdateCluster(ctx request.Context, id *Cluster) (*Cluster, error)
	DeleteCluster(ctx request.Context, id string) (bool, error)
}

Registry is an interface for things that know how to store Cluster. +k8s:deepcopy-gen=false

func NewClusterRegistry

func NewClusterRegistry(sp builders.StandardStorageProvider) ClusterRegistry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type ClusterSpec

type ClusterSpec struct {
	ClusterNetwork ClusterNetworkingConfig
	ProviderConfig ProviderConfig
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterStatus

type ClusterStatus struct {
	APIEndpoints   []APIEndpoint
	ErrorReason    clustercommon.ClusterStatusError
	ErrorMessage   string
	ProviderStatus *pkgruntime.RawExtension
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterStatusStrategy

type ClusterStatusStrategy struct {
	builders.DefaultStatusStorageStrategy
}

+k8s:deepcopy-gen=false

type ClusterStrategy

type ClusterStrategy struct {
	builders.DefaultStorageStrategy
}

Cluster Functions and Structs

+k8s:deepcopy-gen=false

type ConditionStatus

type ConditionStatus string
const (
	ConditionTrue    ConditionStatus = "True"
	ConditionFalse   ConditionStatus = "False"
	ConditionUnknown ConditionStatus = "Unknown"
)

type CurrentStatus

type CurrentStatus struct {
	Phase          MachinePhase
	TimeoutActive  bool
	LastUpdateTime metav1.Time
}

func (*CurrentStatus) DeepCopy

func (in *CurrentStatus) DeepCopy() *CurrentStatus

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

func (*CurrentStatus) DeepCopyInto

func (in *CurrentStatus) DeepCopyInto(out *CurrentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LastOperation

type LastOperation struct {
	Description    string
	LastUpdateTime metav1.Time
	State          MachineState
	Type           MachineOperationType
}

func (*LastOperation) DeepCopy

func (in *LastOperation) DeepCopy() *LastOperation

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

func (*LastOperation) DeepCopyInto

func (in *LastOperation) DeepCopyInto(out *LastOperation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Machine

type Machine struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec   MachineSpec
	Status MachineStatus
}

func (*Machine) DeepCopy

func (in *Machine) DeepCopy() *Machine

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

func (*Machine) DeepCopyInto

func (in *Machine) DeepCopyInto(out *Machine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Machine) DeepCopyObject

func (in *Machine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (Machine) GetGeneration

func (pc Machine) GetGeneration() int64

func (*Machine) GetObjectMeta

func (pc *Machine) GetObjectMeta() *metav1.ObjectMeta

func (*Machine) GetSpec

func (pc *Machine) GetSpec() interface{}

func (*Machine) GetStatus

func (pc *Machine) GetStatus() interface{}

func (Machine) NewStatus

func (Machine) NewStatus() interface{}

func (*Machine) SetGeneration

func (pc *Machine) SetGeneration(generation int64)

func (*Machine) SetSpec

func (pc *Machine) SetSpec(s interface{})

func (*Machine) SetStatus

func (pc *Machine) SetStatus(s interface{})

type MachineClass

type MachineClass struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Capacity       corev1.ResourceList
	Allocatable    corev1.ResourceList
	ProviderConfig pkgruntime.RawExtension
	SecretRef      *corev1.SecretReference
	Provider       string
}

func (*MachineClass) DeepCopy

func (in *MachineClass) DeepCopy() *MachineClass

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

func (*MachineClass) DeepCopyInto

func (in *MachineClass) DeepCopyInto(out *MachineClass)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineClass) DeepCopyObject

func (in *MachineClass) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (MachineClass) GetGeneration

func (pc MachineClass) GetGeneration() int64

func (*MachineClass) GetObjectMeta

func (pc *MachineClass) GetObjectMeta() *metav1.ObjectMeta

func (*MachineClass) SetGeneration

func (pc *MachineClass) SetGeneration(generation int64)

type MachineClassList

type MachineClassList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []MachineClass
}

func (*MachineClassList) DeepCopy

func (in *MachineClassList) DeepCopy() *MachineClassList

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

func (*MachineClassList) DeepCopyInto

func (in *MachineClassList) DeepCopyInto(out *MachineClassList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineClassList) DeepCopyObject

func (in *MachineClassList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineClassRef

type MachineClassRef struct {
	Name       string
	Parameters map[string]string
	Kind       string
}

func (*MachineClassRef) DeepCopy

func (in *MachineClassRef) DeepCopy() *MachineClassRef

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

func (*MachineClassRef) DeepCopyInto

func (in *MachineClassRef) DeepCopyInto(out *MachineClassRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineClassRegistry

type MachineClassRegistry interface {
	ListMachineClasss(ctx request.Context, options *internalversion.ListOptions) (*MachineClassList, error)
	GetMachineClass(ctx request.Context, id string, options *metav1.GetOptions) (*MachineClass, error)
	CreateMachineClass(ctx request.Context, id *MachineClass) (*MachineClass, error)
	UpdateMachineClass(ctx request.Context, id *MachineClass) (*MachineClass, error)
	DeleteMachineClass(ctx request.Context, id string) (bool, error)
}

Registry is an interface for things that know how to store MachineClass. +k8s:deepcopy-gen=false

func NewMachineClassRegistry

func NewMachineClassRegistry(sp builders.StandardStorageProvider) MachineClassRegistry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type MachineClassStatusStrategy

type MachineClassStatusStrategy struct {
	builders.DefaultStatusStorageStrategy
}

+k8s:deepcopy-gen=false

type MachineClassStrategy

type MachineClassStrategy struct {
	builders.DefaultStorageStrategy
}

MachineClass Functions and Structs

+k8s:deepcopy-gen=false

type MachineDeployment

type MachineDeployment struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec   MachineDeploymentSpec
	Status MachineDeploymentStatus
}

func (*MachineDeployment) DeepCopy

func (in *MachineDeployment) DeepCopy() *MachineDeployment

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

func (*MachineDeployment) DeepCopyInto

func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineDeployment) DeepCopyObject

func (in *MachineDeployment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (MachineDeployment) GetGeneration

func (pc MachineDeployment) GetGeneration() int64

func (*MachineDeployment) GetObjectMeta

func (pc *MachineDeployment) GetObjectMeta() *metav1.ObjectMeta

func (*MachineDeployment) GetSpec

func (pc *MachineDeployment) GetSpec() interface{}

func (*MachineDeployment) GetStatus

func (pc *MachineDeployment) GetStatus() interface{}

func (MachineDeployment) NewStatus

func (MachineDeployment) NewStatus() interface{}

func (*MachineDeployment) SetGeneration

func (pc *MachineDeployment) SetGeneration(generation int64)

func (*MachineDeployment) SetSpec

func (pc *MachineDeployment) SetSpec(s interface{})

func (*MachineDeployment) SetStatus

func (pc *MachineDeployment) SetStatus(s interface{})

type MachineDeploymentCondition

type MachineDeploymentCondition struct {
	Type               MachineDeploymentConditionType
	Status             ConditionStatus
	LastUpdateTime     metav1.Time
	LastTransitionTime metav1.Time
	Reason             string
	Message            string
}

func (*MachineDeploymentCondition) DeepCopy

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

func (*MachineDeploymentCondition) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentConditionType

type MachineDeploymentConditionType string
const (
	MachineDeploymentAvailable      MachineDeploymentConditionType = "Available"
	MachineDeploymentProgressing    MachineDeploymentConditionType = "Progressing"
	MachineDeploymentReplicaFailure MachineDeploymentConditionType = "ReplicaFailure"
	MachineDeploymentFrozen         MachineDeploymentConditionType = "Frozen"
)

type MachineDeploymentList

type MachineDeploymentList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []MachineDeployment
}

func (*MachineDeploymentList) DeepCopy

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

func (*MachineDeploymentList) DeepCopyInto

func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineDeploymentList) DeepCopyObject

func (in *MachineDeploymentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineDeploymentRegistry

type MachineDeploymentRegistry interface {
	ListMachineDeployments(ctx request.Context, options *internalversion.ListOptions) (*MachineDeploymentList, error)
	GetMachineDeployment(ctx request.Context, id string, options *metav1.GetOptions) (*MachineDeployment, error)
	CreateMachineDeployment(ctx request.Context, id *MachineDeployment) (*MachineDeployment, error)
	UpdateMachineDeployment(ctx request.Context, id *MachineDeployment) (*MachineDeployment, error)
	DeleteMachineDeployment(ctx request.Context, id string) (bool, error)
}

Registry is an interface for things that know how to store MachineDeployment. +k8s:deepcopy-gen=false

func NewMachineDeploymentRegistry

func NewMachineDeploymentRegistry(sp builders.StandardStorageProvider) MachineDeploymentRegistry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type MachineDeploymentSpec

type MachineDeploymentSpec struct {
	Replicas                *int32
	Selector                *metav1.LabelSelector
	Template                MachineTemplateSpec
	Strategy                MachineDeploymentStrategy
	MinReadySeconds         *int32
	RevisionHistoryLimit    *int32
	Paused                  bool
	RollbackTo              *RollbackConfig
	ProgressDeadlineSeconds *int32
}

func (*MachineDeploymentSpec) DeepCopy

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

func (*MachineDeploymentSpec) DeepCopyInto

func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentStatus

type MachineDeploymentStatus struct {
	ObservedGeneration  int64
	Replicas            int32
	UpdatedReplicas     int32
	ReadyReplicas       int32
	AvailableReplicas   int32
	UnavailableReplicas int32
	Conditions          []MachineDeploymentCondition
	CollisionCount      *int32
	FailedMachines      []*MachineSummary
}

func (*MachineDeploymentStatus) DeepCopy

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

func (*MachineDeploymentStatus) DeepCopyInto

func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentStrategy

type MachineDeploymentStrategy struct {
	Type          clustercommon.MachineDeploymentStrategyType
	RollingUpdate *MachineRollingUpdateDeployment
}

func (*MachineDeploymentStrategy) DeepCopy

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

func (*MachineDeploymentStrategy) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDeploymentValidationStatusStrategy

type MachineDeploymentValidationStatusStrategy struct {
	builders.DefaultStatusStorageStrategy
}

+k8s:deepcopy-gen=false

type MachineDeploymentValidationStrategy

type MachineDeploymentValidationStrategy struct {
	builders.DefaultStorageStrategy
}

MachineDeployment Functions and Structs

+k8s:deepcopy-gen=false

type MachineList

type MachineList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Machine
}

func (*MachineList) DeepCopy

func (in *MachineList) DeepCopy() *MachineList

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

func (*MachineList) DeepCopyInto

func (in *MachineList) DeepCopyInto(out *MachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineList) DeepCopyObject

func (in *MachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineOperationType

type MachineOperationType string
const (
	MachineOperationCreate      MachineOperationType = "Create"
	MachineOperationUpdate      MachineOperationType = "Update"
	MachineOperationHealthCheck MachineOperationType = "HealthCheck"
	MachineOperationDelete      MachineOperationType = "Delete"
)

type MachinePhase

type MachinePhase string
const (
	MachinePending     MachinePhase = "Pending"
	MachineAvailable   MachinePhase = "Available"
	MachineRunning     MachinePhase = "Running"
	MachineTerminating MachinePhase = "Terminating"
	MachineUnknown     MachinePhase = "Unknown"
	MachineFailed      MachinePhase = "Failed"
)

type MachineRegistry

type MachineRegistry interface {
	ListMachines(ctx request.Context, options *internalversion.ListOptions) (*MachineList, error)
	GetMachine(ctx request.Context, id string, options *metav1.GetOptions) (*Machine, error)
	CreateMachine(ctx request.Context, id *Machine) (*Machine, error)
	UpdateMachine(ctx request.Context, id *Machine) (*Machine, error)
	DeleteMachine(ctx request.Context, id string) (bool, error)
}

Registry is an interface for things that know how to store Machine. +k8s:deepcopy-gen=false

func NewMachineRegistry

func NewMachineRegistry(sp builders.StandardStorageProvider) MachineRegistry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type MachineRollingUpdateDeployment

type MachineRollingUpdateDeployment struct {
	MaxUnavailable *utilintstr.IntOrString
	MaxSurge       *utilintstr.IntOrString
}

func (*MachineRollingUpdateDeployment) DeepCopy

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

func (*MachineRollingUpdateDeployment) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSet

type MachineSet struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec   MachineSetSpec
	Status MachineSetStatus
}

func (*MachineSet) DeepCopy

func (in *MachineSet) DeepCopy() *MachineSet

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

func (*MachineSet) DeepCopyInto

func (in *MachineSet) DeepCopyInto(out *MachineSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineSet) DeepCopyObject

func (in *MachineSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (MachineSet) GetGeneration

func (pc MachineSet) GetGeneration() int64

func (*MachineSet) GetObjectMeta

func (pc *MachineSet) GetObjectMeta() *metav1.ObjectMeta

func (*MachineSet) GetSpec

func (pc *MachineSet) GetSpec() interface{}

func (*MachineSet) GetStatus

func (pc *MachineSet) GetStatus() interface{}

func (MachineSet) NewStatus

func (MachineSet) NewStatus() interface{}

func (*MachineSet) SetGeneration

func (pc *MachineSet) SetGeneration(generation int64)

func (*MachineSet) SetSpec

func (pc *MachineSet) SetSpec(s interface{})

func (*MachineSet) SetStatus

func (pc *MachineSet) SetStatus(s interface{})

type MachineSetCondition

type MachineSetCondition struct {
	Type               MachineSetConditionType
	Status             ConditionStatus
	LastTransitionTime metav1.Time
	Reason             string
	Message            string
}

func (*MachineSetCondition) DeepCopy

func (in *MachineSetCondition) DeepCopy() *MachineSetCondition

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

func (*MachineSetCondition) DeepCopyInto

func (in *MachineSetCondition) DeepCopyInto(out *MachineSetCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSetConditionType

type MachineSetConditionType string
const (
	MachineSetReplicaFailure MachineSetConditionType = "ReplicaFailure"
	MachineSetFrozen         MachineSetConditionType = "Frozen"
)

type MachineSetList

type MachineSetList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []MachineSet
}

func (*MachineSetList) DeepCopy

func (in *MachineSetList) DeepCopy() *MachineSetList

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

func (*MachineSetList) DeepCopyInto

func (in *MachineSetList) DeepCopyInto(out *MachineSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineSetList) DeepCopyObject

func (in *MachineSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineSetRegistry

type MachineSetRegistry interface {
	ListMachineSets(ctx request.Context, options *internalversion.ListOptions) (*MachineSetList, error)
	GetMachineSet(ctx request.Context, id string, options *metav1.GetOptions) (*MachineSet, error)
	CreateMachineSet(ctx request.Context, id *MachineSet) (*MachineSet, error)
	UpdateMachineSet(ctx request.Context, id *MachineSet) (*MachineSet, error)
	DeleteMachineSet(ctx request.Context, id string) (bool, error)
}

Registry is an interface for things that know how to store MachineSet. +k8s:deepcopy-gen=false

func NewMachineSetRegistry

func NewMachineSetRegistry(sp builders.StandardStorageProvider) MachineSetRegistry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type MachineSetSpec

type MachineSetSpec struct {
	Replicas        *int32
	MinReadySeconds int32
	Selector        *metav1.LabelSelector
	Template        MachineTemplateSpec
}

func (*MachineSetSpec) DeepCopy

func (in *MachineSetSpec) DeepCopy() *MachineSetSpec

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

func (*MachineSetSpec) DeepCopyInto

func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSetStatus

type MachineSetStatus struct {
	Replicas             int32
	FullyLabeledReplicas int32
	ReadyReplicas        int32
	AvailableReplicas    int32
	ObservedGeneration   int64
	ErrorReason          *clustercommon.MachineSetStatusError
	ErrorMessage         *string
	Conditions           []MachineSetCondition
	LastOperation        LastOperation
	FailedMachines       *[]MachineSummary
}

func (*MachineSetStatus) DeepCopy

func (in *MachineSetStatus) DeepCopy() *MachineSetStatus

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

func (*MachineSetStatus) DeepCopyInto

func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineSetStatusStrategy

type MachineSetStatusStrategy struct {
	builders.DefaultStatusStorageStrategy
}

+k8s:deepcopy-gen=false

type MachineSetStrategy

type MachineSetStrategy struct {
	builders.DefaultStorageStrategy
}

MachineSet Functions and Structs

+k8s:deepcopy-gen=false

type MachineSpec

type MachineSpec struct {
	metav1.ObjectMeta
	Taints         []corev1.Taint
	ProviderConfig ProviderConfig
	Versions       MachineVersionInfo
	ConfigSource   *corev1.NodeConfigSource
}

func (*MachineSpec) DeepCopy

func (in *MachineSpec) DeepCopy() *MachineSpec

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

func (*MachineSpec) DeepCopyInto

func (in *MachineSpec) DeepCopyInto(out *MachineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineState

type MachineState string

MachineState is the State of the Machine currently.

const (
	MachineStateProcessing MachineState = "Processing"
	MachineStateFailed     MachineState = "Failed"
	MachineStateSuccessful MachineState = "Successful"
)

These are the valid statuses of machines.

type MachineStatus

type MachineStatus struct {
	NodeRef        *corev1.ObjectReference
	LastUpdated    metav1.Time
	Versions       *MachineVersionInfo
	ErrorReason    *clustercommon.MachineStatusError
	ErrorMessage   *string
	ProviderStatus *pkgruntime.RawExtension
	Addresses      []corev1.NodeAddress
	Conditions     []corev1.NodeCondition
	LastOperation  LastOperation
	CurrentStatus  CurrentStatus
	ProviderID     string
}

func (*MachineStatus) DeepCopy

func (in *MachineStatus) DeepCopy() *MachineStatus

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

func (*MachineStatus) DeepCopyInto

func (in *MachineStatus) DeepCopyInto(out *MachineStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineStatusStrategy

type MachineStatusStrategy struct {
	builders.DefaultStatusStorageStrategy
}

+k8s:deepcopy-gen=false

type MachineStrategy

type MachineStrategy struct {
	builders.DefaultStorageStrategy
}

Machine Functions and Structs

+k8s:deepcopy-gen=false

type MachineSummary

type MachineSummary struct {
	Name          string
	ProviderID    string
	LastOperation LastOperation
	OwnerRef      string
}

func (*MachineSummary) DeepCopy

func (in *MachineSummary) DeepCopy() *MachineSummary

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

func (*MachineSummary) DeepCopyInto

func (in *MachineSummary) DeepCopyInto(out *MachineSummary)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineTemplateSpec

type MachineTemplateSpec struct {
	metav1.ObjectMeta
	Spec MachineSpec
}

func (*MachineTemplateSpec) DeepCopy

func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec

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

func (*MachineTemplateSpec) DeepCopyInto

func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineVersionInfo

type MachineVersionInfo struct {
	Kubelet      string
	ControlPlane string
}

func (*MachineVersionInfo) DeepCopy

func (in *MachineVersionInfo) DeepCopy() *MachineVersionInfo

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

func (*MachineVersionInfo) DeepCopyInto

func (in *MachineVersionInfo) DeepCopyInto(out *MachineVersionInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkRanges

type NetworkRanges struct {
	CIDRBlocks []string
}

func (*NetworkRanges) DeepCopy

func (in *NetworkRanges) DeepCopy() *NetworkRanges

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

func (*NetworkRanges) DeepCopyInto

func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ProviderConfig

type ProviderConfig struct {
	Value     *pkgruntime.RawExtension
	ValueFrom *ProviderConfigSource
}

func (*ProviderConfig) DeepCopy

func (in *ProviderConfig) DeepCopy() *ProviderConfig

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

func (*ProviderConfig) DeepCopyInto

func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ProviderConfigSource

type ProviderConfigSource struct {
	MachineClass *MachineClassRef
}

func (*ProviderConfigSource) DeepCopy

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

func (*ProviderConfigSource) DeepCopyInto

func (in *ProviderConfigSource) DeepCopyInto(out *ProviderConfigSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RollbackConfig

type RollbackConfig struct {
	Revision int64
}

func (*RollbackConfig) DeepCopy

func (in *RollbackConfig) DeepCopy() *RollbackConfig

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

func (*RollbackConfig) DeepCopyInto

func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/gardener/machine-controller-manager/pkg/apis/cluster +k8s:defaulter-gen=TypeMeta +groupName=cluster.k8s.io
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/gardener/machine-controller-manager/pkg/apis/cluster +k8s:defaulter-gen=TypeMeta +groupName=cluster.k8s.io

Jump to

Keyboard shortcuts

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