v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 19

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Package v1alpha1 contains API Schema definitions for the compute v1alpha1 API group +groupName=compute.ironcore.dev

Index

Constants

View Source
const (
	MachineMachinePoolRefNameField  = "spec.machinePoolRef.name"
	MachineMachineClassRefNameField = "spec.machineClassRef.name"

	// MachinePoolsGroup is the system rbac group all machine pools are in.
	MachinePoolsGroup = "compute.ironcore.dev:system:machinepools"

	// MachinePoolUserNamePrefix is the prefix all machine pool users should have.
	MachinePoolUserNamePrefix = "compute.ironcore.dev:system:machinepool:"

	SecretTypeIgnition = corev1.SecretType("compute.ironcore.dev/ignition")
)
View Source
const DefaultIgnitionKey = "ignition.yaml"

DefaultIgnitionKey is the default key for MachineSpec.UserData.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "compute.ironcore.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// MachineClassFinalizer is the finalizer for MachineClass.
	MachineClassFinalizer = SchemeGroupVersion.Group + "/machineclass"
)

Functions

func MachineEphemeralNetworkInterfaceName

func MachineEphemeralNetworkInterfaceName(machineName, machineNicName string) string

MachineEphemeralNetworkInterfaceName returns the name of a NetworkInterface for an ephemeral machine network interface.

func MachineEphemeralVolumeName

func MachineEphemeralVolumeName(machineName, machineVolumeName string) string

MachineEphemeralVolumeName returns the name of a Volume for an ephemeral machine volume.

func MachineNetworkInterfaceName

func MachineNetworkInterfaceName(machineName string, networkInterface NetworkInterface) string

MachineNetworkInterfaceName returns the name of the NetworkInterface for a machine network interface.

func MachineNetworkInterfaceNames

func MachineNetworkInterfaceNames(machine *Machine) []string

MachineNetworkInterfaceNames returns all NetworkInterface names of a machine.

func MachinePoolCommonName

func MachinePoolCommonName(name string) string

MachinePoolCommonName constructs the common name for a certificate of a machine pool user.

func MachineSecretNames

func MachineSecretNames(machine *Machine) []string

MachineSecretNames returns all secret names of a machine.

func MachineVolumeName

func MachineVolumeName(machineName string, volume Volume) string

MachineVolumeName returns the name of the Volume for a machine volume.

func MachineVolumeNames

func MachineVolumeNames(machine *Machine) []string

MachineVolumeNames returns all Volume names of a machine.

func Resource

func Resource(resource string) schema.GroupResource

Types

type DaemonEndpoint

type DaemonEndpoint struct {
	// Port number of the given endpoint.
	Port int32 `json:"port"`
}

DaemonEndpoint contains information about a single Daemon endpoint.

func (*DaemonEndpoint) DeepCopy

func (in *DaemonEndpoint) DeepCopy() *DaemonEndpoint

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

func (*DaemonEndpoint) DeepCopyInto

func (in *DaemonEndpoint) DeepCopyInto(out *DaemonEndpoint)

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

func (DaemonEndpoint) OpenAPIModelName added in v0.4.0

func (in DaemonEndpoint) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type EFIVar

type EFIVar struct {
	// Name is the name of the EFIVar.
	Name string `json:"name"`
	// UUID is the uuid of the EFIVar.
	UUID string `json:"uuid"`
	// Value is the value of the EFIVar.
	Value string `json:"value"`
}

EFIVar is a variable to pass to EFI while booting up.

func (*EFIVar) DeepCopy

func (in *EFIVar) DeepCopy() *EFIVar

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

func (*EFIVar) DeepCopyInto

func (in *EFIVar) DeepCopyInto(out *EFIVar)

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

func (EFIVar) OpenAPIModelName added in v0.4.0

func (in EFIVar) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type EmptyDiskVolumeSource

type EmptyDiskVolumeSource struct {
	// SizeLimit is the total amount of local storage required for this EmptyDisk volume.
	// The default is nil which means that the limit is undefined.
	SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"`
}

EmptyDiskVolumeSource is a volume that's offered by the machine pool provider. Usually ephemeral (i.e. deleted when the surrounding entity is deleted), with varying performance characteristics. Potentially not recoverable.

func (*EmptyDiskVolumeSource) DeepCopy

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

func (*EmptyDiskVolumeSource) DeepCopyInto

func (in *EmptyDiskVolumeSource) DeepCopyInto(out *EmptyDiskVolumeSource)

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

func (EmptyDiskVolumeSource) OpenAPIModelName added in v0.4.0

func (in EmptyDiskVolumeSource) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type EphemeralNetworkInterfaceSource

type EphemeralNetworkInterfaceSource struct {
	// NetworkInterfaceTemplate is the template definition of the networking.NetworkInterface.
	NetworkInterfaceTemplate *networkingv1alpha1.NetworkInterfaceTemplateSpec `json:"networkInterfaceTemplate,omitempty"`
}

EphemeralNetworkInterfaceSource is a definition for an ephemeral (i.e. coupled to the lifetime of the surrounding object) networking.NetworkInterface.

func (*EphemeralNetworkInterfaceSource) DeepCopy

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

func (*EphemeralNetworkInterfaceSource) DeepCopyInto

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

func (EphemeralNetworkInterfaceSource) OpenAPIModelName added in v0.4.0

func (in EphemeralNetworkInterfaceSource) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type EphemeralVolumeSource

type EphemeralVolumeSource struct {
	// VolumeTemplate is the template definition of the storage.Volume.
	VolumeTemplate *storagev1alpha1.VolumeTemplateSpec `json:"volumeTemplate,omitempty"`
}

EphemeralVolumeSource is a definition for an ephemeral (i.e. coupled to the lifetime of the surrounding object) storage.Volume.

func (*EphemeralVolumeSource) DeepCopy

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

func (*EphemeralVolumeSource) DeepCopyInto

func (in *EphemeralVolumeSource) DeepCopyInto(out *EphemeralVolumeSource)

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

func (EphemeralVolumeSource) OpenAPIModelName added in v0.4.0

func (in EphemeralVolumeSource) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LocalDiskVolumeSource added in v0.3.0

type LocalDiskVolumeSource struct {
	// SizeLimit is the total amount of local storage required for this LocalDisk volume.
	// The default is nil which means that the limit is undefined.
	SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"`
	// Image is the optional URL providing the operating system image of the machine.
	// +optional
	Image string `json:"image,omitempty"`
}

LocalDiskVolumeSource is a volume that's offered by the machine pool provider. Usually ephemeral (i.e. deleted when the surrounding entity is deleted), with varying performance characteristics. Potentially not recoverable.

func (*LocalDiskVolumeSource) DeepCopy added in v0.3.0

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

func (*LocalDiskVolumeSource) DeepCopyInto added in v0.3.0

func (in *LocalDiskVolumeSource) DeepCopyInto(out *LocalDiskVolumeSource)

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

func (LocalDiskVolumeSource) OpenAPIModelName added in v0.4.0

func (in LocalDiskVolumeSource) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type Machine

type Machine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MachineSpec   `json:"spec,omitempty"`
	Status MachineStatus `json:"status,omitempty"`
}

Machine is the Schema for the machines API

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) OpenAPIModelName added in v0.4.0

func (in Machine) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineClass

type MachineClass struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Capabilities corev1alpha1.ResourceList `json:"capabilities,omitempty"`
}

MachineClass is the Schema for the machineclasses API

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) OpenAPIModelName added in v0.4.0

func (in MachineClass) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineClassList

type MachineClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineClass `json:"items"`
}

MachineClassList contains a list of 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.

func (MachineClassList) OpenAPIModelName added in v0.4.0

func (in MachineClassList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineCondition added in v0.3.0

type MachineCondition struct {
	// Type is the type of the condition.
	Type MachineConditionType `json:"type"`
	// Status is the status of the condition.
	Status corev1.ConditionStatus `json:"status"`
	// Reason is a machine-readable indication of why the condition is in a certain state.
	Reason string `json:"reason"`
	// Message is a human-readable explanation of why the condition has a certain reason / state.
	Message string `json:"message"`
	// LastTransitionTime is the last time the status of a condition has transitioned from one state to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}

MachineCondition is one of the conditions of a machine.

func (*MachineCondition) DeepCopy added in v0.3.0

func (in *MachineCondition) DeepCopy() *MachineCondition

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

func (*MachineCondition) DeepCopyInto added in v0.3.0

func (in *MachineCondition) DeepCopyInto(out *MachineCondition)

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

func (MachineCondition) OpenAPIModelName added in v0.4.0

func (in MachineCondition) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineConditionType added in v0.3.0

type MachineConditionType string

MachineConditionType is a type a MachineCondition can have.

type MachineExecOptions

type MachineExecOptions struct {
	metav1.TypeMeta              `json:",inline"`
	InsecureSkipTLSVerifyBackend bool `json:"insecureSkipTLSVerifyBackend,omitempty"`
}

MachineExecOptions is the query options to a Machine's remote exec call

func (*MachineExecOptions) DeepCopy

func (in *MachineExecOptions) DeepCopy() *MachineExecOptions

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

func (*MachineExecOptions) DeepCopyInto

func (in *MachineExecOptions) DeepCopyInto(out *MachineExecOptions)

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

func (*MachineExecOptions) DeepCopyObject

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

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

func (MachineExecOptions) OpenAPIModelName added in v0.4.0

func (in MachineExecOptions) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineGuestConfig added in v0.4.0

type MachineGuestConfig struct {
	// Hostname is the desired hostname of the machine.
	// +optional
	Hostname string `json:"hostname,omitempty"`
}

MachineGuestConfig contains guest OS level configuration for the machine.

func (*MachineGuestConfig) DeepCopy added in v0.4.0

func (in *MachineGuestConfig) DeepCopy() *MachineGuestConfig

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

func (*MachineGuestConfig) DeepCopyInto added in v0.4.0

func (in *MachineGuestConfig) DeepCopyInto(out *MachineGuestConfig)

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

func (MachineGuestConfig) OpenAPIModelName added in v0.4.0

func (in MachineGuestConfig) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineList

type MachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Machine `json:"items"`
}

MachineList contains a list of 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.

func (MachineList) OpenAPIModelName added in v0.4.0

func (in MachineList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePool

type MachinePool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MachinePoolSpec   `json:"spec,omitempty"`
	Status MachinePoolStatus `json:"status,omitempty"`
}

MachinePool is the Schema for the machinepools API

func (*MachinePool) DeepCopy

func (in *MachinePool) DeepCopy() *MachinePool

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

func (*MachinePool) DeepCopyInto

func (in *MachinePool) DeepCopyInto(out *MachinePool)

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

func (*MachinePool) DeepCopyObject

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

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

func (MachinePool) OpenAPIModelName added in v0.4.0

func (in MachinePool) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePoolAddress

type MachinePoolAddress struct {
	Type    MachinePoolAddressType `json:"type"`
	Address string                 `json:"address"`
}

func (*MachinePoolAddress) DeepCopy

func (in *MachinePoolAddress) DeepCopy() *MachinePoolAddress

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

func (*MachinePoolAddress) DeepCopyInto

func (in *MachinePoolAddress) DeepCopyInto(out *MachinePoolAddress)

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

func (MachinePoolAddress) OpenAPIModelName added in v0.4.0

func (in MachinePoolAddress) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePoolAddressType

type MachinePoolAddressType string
const (
	// MachinePoolHostName identifies a name of the machine pool. Although every machine pool can be assumed
	// to have a MachinePoolAddress of this type, its exact syntax and semantics are not
	// defined, and are not consistent between different clusters.
	MachinePoolHostName MachinePoolAddressType = "Hostname"

	// MachinePoolInternalIP identifies an IP address which may not be visible to hosts outside the cluster.
	// By default, it is assumed that ironcore-apiserver can reach machine pool internal IPs, though it is possible
	// to configure clusters where this is not the case.
	//
	// MachinePoolInternalIP is the default type of machine pool IP, and does not necessarily imply
	// that the IP is ONLY reachable internally. If a machine pool has multiple internal IPs,
	// no specific semantics are assigned to the additional IPs.
	MachinePoolInternalIP MachinePoolAddressType = "InternalIP"

	// MachinePoolExternalIP identifies an IP address which is, in some way, intended to be more usable from outside
	// the cluster than an internal IP, though no specific semantics are defined.
	MachinePoolExternalIP MachinePoolAddressType = "ExternalIP"

	// MachinePoolInternalDNS identifies a DNS name which resolves to an IP address which has
	// the characteristics of a MachinePoolInternalIP. The IP it resolves to may or may not
	// be a listed MachinePoolInternalIP address.
	MachinePoolInternalDNS MachinePoolAddressType = "InternalDNS"

	// MachinePoolExternalDNS identifies a DNS name which resolves to an IP address which has the characteristics
	// of MachinePoolExternalIP. The IP it resolves to may or may not be a listed MachineExternalIP address.
	MachinePoolExternalDNS MachinePoolAddressType = "ExternalDNS"
)

type MachinePoolCondition

type MachinePoolCondition struct {
	// Type is the type of the condition.
	Type MachinePoolConditionType `json:"type"`
	// Status is the status of the condition.
	Status corev1.ConditionStatus `json:"status"`
	// Reason is a machine-readable indication of why the condition is in a certain state.
	Reason string `json:"reason"`
	// Message is a human-readable explanation of why the condition has a certain reason / state.
	Message string `json:"message"`
	// ObservedGeneration represents the .metadata.generation that the condition was set based upon.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// LastTransitionTime is the last time the status of a condition has transitioned from one state to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}

MachinePoolCondition is one of the conditions of a MachinePool.

func (*MachinePoolCondition) DeepCopy

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

func (*MachinePoolCondition) DeepCopyInto

func (in *MachinePoolCondition) DeepCopyInto(out *MachinePoolCondition)

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

func (MachinePoolCondition) OpenAPIModelName added in v0.4.0

func (in MachinePoolCondition) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePoolConditionType

type MachinePoolConditionType string

MachinePoolConditionType is a type a MachinePoolCondition can have.

type MachinePoolDaemonEndpoints

type MachinePoolDaemonEndpoints struct {
	// Endpoint on which machinepoollet is listening.
	// +optional
	MachinepoolletEndpoint DaemonEndpoint `json:"machinepoolletEndpoint,omitempty"`
}

MachinePoolDaemonEndpoints lists ports opened by daemons running on the MachinePool.

func (*MachinePoolDaemonEndpoints) DeepCopy

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

func (*MachinePoolDaemonEndpoints) DeepCopyInto

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

func (MachinePoolDaemonEndpoints) OpenAPIModelName added in v0.4.0

func (in MachinePoolDaemonEndpoints) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePoolList

type MachinePoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachinePool `json:"items"`
}

MachinePoolList contains a list of MachinePool

func (*MachinePoolList) DeepCopy

func (in *MachinePoolList) DeepCopy() *MachinePoolList

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

func (*MachinePoolList) DeepCopyInto

func (in *MachinePoolList) DeepCopyInto(out *MachinePoolList)

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

func (*MachinePoolList) DeepCopyObject

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

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

func (MachinePoolList) OpenAPIModelName added in v0.4.0

func (in MachinePoolList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePoolSpec

type MachinePoolSpec struct {
	// ProviderID identifies the MachinePool on provider side.
	ProviderID string `json:"providerID"`
	// Taints of the MachinePool. Only Machines who tolerate all the taints
	// will land in the MachinePool.
	Taints []commonv1alpha1.Taint `json:"taints,omitempty"`
}

MachinePoolSpec defines the desired state of MachinePool

func (*MachinePoolSpec) DeepCopy

func (in *MachinePoolSpec) DeepCopy() *MachinePoolSpec

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

func (*MachinePoolSpec) DeepCopyInto

func (in *MachinePoolSpec) DeepCopyInto(out *MachinePoolSpec)

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

func (MachinePoolSpec) OpenAPIModelName added in v0.4.0

func (in MachinePoolSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachinePoolState

type MachinePoolState string

MachinePoolState is a state a MachinePool can be in. +enum

const (
	// MachinePoolStateReady marks a MachinePool as ready for accepting a Machine.
	MachinePoolStateReady MachinePoolState = "Ready"
	// MachinePoolStatePending marks a MachinePool as pending readiness.
	MachinePoolStatePending MachinePoolState = "Pending"
	// MachinePoolStateError marks a MachinePool in an error state.
	MachinePoolStateError MachinePoolState = "Error"
	// MachinePoolStateOffline marks a MachinePool as offline.
	MachinePoolStateOffline MachinePoolState = "Offline"
)

type MachinePoolStatus

type MachinePoolStatus struct {
	State                   MachinePoolState              `json:"state,omitempty"`
	Conditions              []MachinePoolCondition        `json:"conditions,omitempty"`
	AvailableMachineClasses []corev1.LocalObjectReference `json:"availableMachineClasses,omitempty"`
	Addresses               []MachinePoolAddress          `json:"addresses,omitempty"`
	DaemonEndpoints         MachinePoolDaemonEndpoints    `json:"daemonEndpoints,omitempty"`
	// Capacity represents the total resources of a machine pool.
	Capacity corev1alpha1.ResourceList `json:"capacity,omitempty"`
	// Allocatable represents the resources of a machine pool that are available for scheduling.
	Allocatable corev1alpha1.ResourceList `json:"allocatable,omitempty"`
}

MachinePoolStatus defines the observed state of MachinePool

func (*MachinePoolStatus) DeepCopy

func (in *MachinePoolStatus) DeepCopy() *MachinePoolStatus

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

func (*MachinePoolStatus) DeepCopyInto

func (in *MachinePoolStatus) DeepCopyInto(out *MachinePoolStatus)

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

func (MachinePoolStatus) OpenAPIModelName added in v0.4.0

func (in MachinePoolStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineSpec

type MachineSpec struct {
	// MachineClassRef is a reference to the machine class/flavor of the machine.
	MachineClassRef corev1.LocalObjectReference `json:"machineClassRef"`
	// MachinePoolSelector selects a suitable MachinePoolRef by the given labels.
	MachinePoolSelector map[string]string `json:"machinePoolSelector,omitempty"`
	// MachinePoolRef defines machine pool to run the machine in.
	// If empty, a scheduler will figure out an appropriate pool to run the machine in.
	MachinePoolRef *corev1.LocalObjectReference `json:"machinePoolRef,omitempty"`
	// Power is the desired machine power state.
	// Defaults to PowerOn.
	Power Power `json:"power,omitempty"`
	// Deprecated: Use LocalDisk to provide a bootable disk
	// Image is the optional URL providing the operating system image of the machine.
	// +optional
	Image string `json:"image,omitempty"`
	// ImagePullSecretRef is an optional secret for pulling the image of a machine.
	ImagePullSecretRef *corev1.LocalObjectReference `json:"imagePullSecret,omitempty"`
	// NetworkInterfaces define a list of network interfaces present on the machine
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name"`
	// Volumes are volumes attached to this machine.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	Volumes []Volume `json:"volumes,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name"`
	// IgnitionRef is a reference to a secret containing the ignition YAML for the machine to boot up.
	// If key is empty, DefaultIgnitionKey will be used as fallback.
	IgnitionRef *commonv1alpha1.SecretKeySelector `json:"ignitionRef,omitempty"`
	// EFIVars are variables to pass to EFI while booting up.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	EFIVars []EFIVar `json:"efiVars,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name"`
	// Tolerations define tolerations the Machine has. Only MachinePools whose taints
	// covered by Tolerations will be considered to run the Machine.
	Tolerations []commonv1alpha1.Toleration `json:"tolerations,omitempty"`
	// GuestConfig contains guest OS level configuration for the machine.
	// +optional
	GuestConfig *MachineGuestConfig `json:"guestConfig,omitempty"`
}

MachineSpec defines the desired state of Machine

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.

func (MachineSpec) OpenAPIModelName added in v0.4.0

func (in MachineSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type MachineState

type MachineState string

MachineState is the state of a machine. +enum

const (
	// MachineStatePending means the Machine has been accepted by the system, but not yet completely started.
	// This includes time before being bound to a MachinePool, as well as time spent setting up the Machine on that
	// MachinePool.
	MachineStatePending MachineState = "Pending"
	// MachineStateRunning means the machine is running on a MachinePool.
	MachineStateRunning MachineState = "Running"
	// MachineStateShutdown means the machine is shut down.
	MachineStateShutdown MachineState = "Shutdown"
	// MachineStateTerminated means the machine has been permanently stopped and cannot be started.
	MachineStateTerminated MachineState = "Terminated"
	// MachineStateTerminating means the machine that is terminating.
	MachineStateTerminating MachineState = "Terminating"
)

type MachineStatus

type MachineStatus struct {
	// MachineID is the provider specific machine ID in the format 'TYPE://MACHINE_ID'.
	MachineID string `json:"machineID,omitempty"`
	// ObservedGeneration is the last generation the MachinePool observed of the Machine.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Conditions are the conditions of a machine.
	Conditions []MachineCondition `json:"conditions,omitempty"`
	// State is the infrastructure state of the machine.
	State MachineState `json:"state,omitempty"`
	// NetworkInterfaces is the list of network interface states for the machine.
	NetworkInterfaces []NetworkInterfaceStatus `json:"networkInterfaces,omitempty"`
	// Volumes is the list of volume states for the machine.
	Volumes []VolumeStatus `json:"volumes,omitempty"`
}

MachineStatus defines the observed state of Machine

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.

func (MachineStatus) OpenAPIModelName added in v0.4.0

func (in MachineStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterface

type NetworkInterface struct {
	// Name is the name of the network interface.
	Name string `json:"name"`
	// NetworkInterfaceSource is where to obtain the interface from.
	NetworkInterfaceSource `json:",inline"`
}

NetworkInterface is the definition of a single interface

func (*NetworkInterface) DeepCopy

func (in *NetworkInterface) DeepCopy() *NetworkInterface

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

func (*NetworkInterface) DeepCopyInto

func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)

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

func (NetworkInterface) OpenAPIModelName added in v0.4.0

func (in NetworkInterface) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfaceSource

type NetworkInterfaceSource struct {
	// NetworkInterfaceRef instructs to use the NetworkInterface at the target reference.
	NetworkInterfaceRef *corev1.LocalObjectReference `json:"networkInterfaceRef,omitempty"`
	// Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object)
	// NetworkInterface to use.
	Ephemeral *EphemeralNetworkInterfaceSource `json:"ephemeral,omitempty"`
}

func (*NetworkInterfaceSource) DeepCopy

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

func (*NetworkInterfaceSource) DeepCopyInto

func (in *NetworkInterfaceSource) DeepCopyInto(out *NetworkInterfaceSource)

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

func (NetworkInterfaceSource) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceSource) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfaceState

type NetworkInterfaceState string

NetworkInterfaceState is the infrastructure attachment state a NetworkInterface can be in.

const (
	// NetworkInterfaceStatePending indicates that the attachment of a network interface is pending.
	NetworkInterfaceStatePending NetworkInterfaceState = "Pending"
	// NetworkInterfaceStateAttached indicates that a network interface has been successfully attached.
	NetworkInterfaceStateAttached NetworkInterfaceState = "Attached"
)

type NetworkInterfaceStatus

type NetworkInterfaceStatus struct {
	// Name is the name of the NetworkInterface to whom the status belongs to.
	Name string `json:"name"`
	// Handle is the MachinePool internal handle of the NetworkInterface.
	Handle string `json:"handle,omitempty"`
	// State represents the attachment state of a NetworkInterface.
	State NetworkInterfaceState `json:"state,omitempty"`
	// networkInterfaceRef is the reference to the networkinterface attached to the machine
	NetworkInterfaceRef corev1.LocalObjectReference `json:"networkInterfaceRef,omitempty"`
	// LastStateTransitionTime is the last time the State transitioned.
	LastStateTransitionTime *metav1.Time `json:"lastStateTransitionTime,omitempty"`
}

NetworkInterfaceStatus reports the status of a NetworkInterfaceSource.

func (*NetworkInterfaceStatus) DeepCopy

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

func (*NetworkInterfaceStatus) DeepCopyInto

func (in *NetworkInterfaceStatus) DeepCopyInto(out *NetworkInterfaceStatus)

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

func (NetworkInterfaceStatus) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type Power

type Power string

Power is the desired power state of a Machine.

const (
	// PowerOn indicates that a Machine should be powered on.
	PowerOn Power = "On"
	// PowerOff indicates that a Machine should be powered off.
	PowerOff Power = "Off"
)

type Volume

type Volume struct {
	// Name is the name of the Volume
	Name string `json:"name"`
	// Device is the device name where the volume should be attached.
	// Pointer to distinguish between explicit zero and not specified.
	// If empty, an unused device name will be determined if possible.
	Device *string `json:"device,omitempty"`
	// VolumeSource is the source where the storage for the Volume resides at.
	VolumeSource `json:",inline"`
}

Volume defines a volume attachment of a machine

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

func (Volume) OpenAPIModelName added in v0.4.0

func (in Volume) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type VolumeSource

type VolumeSource struct {
	// VolumeRef instructs to use the specified Volume as source for the attachment.
	VolumeRef *corev1.LocalObjectReference `json:"volumeRef,omitempty"`
	// Deprecated: Use LocalDisk instead
	// EmptyDisk instructs to use a Volume offered by the machine pool provider.
	EmptyDisk *EmptyDiskVolumeSource `json:"emptyDisk,omitempty"`
	// LocalDisk instructs to use a Volume offered by the machine pool provider.
	LocalDisk *LocalDiskVolumeSource `json:"localDisk,omitempty"`
	// Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object)
	// Volume to use.
	Ephemeral *EphemeralVolumeSource `json:"ephemeral,omitempty"`
}

VolumeSource specifies the source to use for a Volume.

func (*VolumeSource) DeepCopy

func (in *VolumeSource) DeepCopy() *VolumeSource

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

func (*VolumeSource) DeepCopyInto

func (in *VolumeSource) DeepCopyInto(out *VolumeSource)

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

func (VolumeSource) OpenAPIModelName added in v0.4.0

func (in VolumeSource) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type VolumeState

type VolumeState string

VolumeState is the infrastructure attachment state a Volume can be in.

const (
	// VolumeStatePending indicates that the attachment of a volume is pending.
	VolumeStatePending VolumeState = "Pending"
	// VolumeStateAttached indicates that a volume has been successfully attached.
	VolumeStateAttached VolumeState = "Attached"
)

type VolumeStatus

type VolumeStatus struct {
	// Name is the name of a volume attachment.
	Name string `json:"name"`
	// Handle is the MachinePool internal handle of the volume.
	Handle string `json:"handle,omitempty"`
	// State represents the attachment state of a Volume.
	State VolumeState `json:"state,omitempty"`
	// LastStateTransitionTime is the last time the State transitioned.
	LastStateTransitionTime *metav1.Time `json:"lastStateTransitionTime,omitempty"`
	// VolumeRef reference to the claimed Volume
	VolumeRef corev1.LocalObjectReference `json:"volumeRef,omitempty"`
}

VolumeStatus is the status of a Volume.

func (*VolumeStatus) DeepCopy

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto

func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)

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

func (VolumeStatus) OpenAPIModelName added in v0.4.0

func (in VolumeStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

Jump to

Keyboard shortcuts

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