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
- Variables
- func MachineEphemeralNetworkInterfaceName(machineName, machineNicName string) string
- func MachineEphemeralVolumeName(machineName, machineVolumeName string) string
- func MachineNetworkInterfaceName(machineName string, networkInterface NetworkInterface) string
- func MachineNetworkInterfaceNames(machine *Machine) []string
- func MachinePoolCommonName(name string) string
- func MachineSecretNames(machine *Machine) []string
- func MachineVolumeName(machineName string, volume Volume) string
- func MachineVolumeNames(machine *Machine) []string
- func Resource(resource string) schema.GroupResource
- type DaemonEndpoint
- type EFIVar
- type EmptyDiskVolumeSource
- type EphemeralNetworkInterfaceSource
- type EphemeralVolumeSource
- type Machine
- type MachineClass
- type MachineClassList
- type MachineExecOptions
- type MachineList
- type MachinePool
- type MachinePoolAddress
- type MachinePoolAddressType
- type MachinePoolCondition
- type MachinePoolConditionType
- type MachinePoolDaemonEndpoints
- type MachinePoolList
- type MachinePoolSpec
- type MachinePoolState
- type MachinePoolStatus
- type MachineSpec
- type MachineState
- type MachineStatus
- type NetworkInterface
- type NetworkInterfaceSource
- type NetworkInterfaceState
- type NetworkInterfaceStatus
- type Power
- type Volume
- type VolumeSource
- type VolumeState
- type VolumeStatus
Constants ¶
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") )
const DefaultIgnitionKey = "ignition.yaml"
DefaultIgnitionKey is the default key for MachineSpec.UserData.
Variables ¶
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 )
var ( // MachineClassFinalizer is the finalizer for MachineClass. MachineClassFinalizer = SchemeGroupVersion.Group + "/machineclass" )
Functions ¶
func MachineEphemeralNetworkInterfaceName ¶
MachineEphemeralNetworkInterfaceName returns the name of a NetworkInterface for an ephemeral machine network interface.
func MachineEphemeralVolumeName ¶
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 ¶
MachineNetworkInterfaceNames returns all NetworkInterface names of a machine.
func MachinePoolCommonName ¶
MachinePoolCommonName constructs the common name for a certificate of a machine pool user.
func MachineSecretNames ¶
MachineSecretNames returns all secret names of a machine.
func MachineVolumeName ¶
MachineVolumeName returns the name of the Volume for a machine volume.
func MachineVolumeNames ¶
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.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EFIVar.
func (*EFIVar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (in *EmptyDiskVolumeSource) DeepCopy() *EmptyDiskVolumeSource
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.
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 ¶
func (in *EphemeralNetworkInterfaceSource) DeepCopy() *EphemeralNetworkInterfaceSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralNetworkInterfaceSource.
func (*EphemeralNetworkInterfaceSource) DeepCopyInto ¶
func (in *EphemeralNetworkInterfaceSource) DeepCopyInto(out *EphemeralNetworkInterfaceSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (in *EphemeralVolumeSource) DeepCopy() *EphemeralVolumeSource
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.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Machine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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.
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.
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.
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.
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.
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.
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 volume.
func (*MachinePoolCondition) DeepCopy ¶
func (in *MachinePoolCondition) DeepCopy() *MachinePoolCondition
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.
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 ¶
func (in *MachinePoolDaemonEndpoints) DeepCopy() *MachinePoolDaemonEndpoints
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolDaemonEndpoints.
func (*MachinePoolDaemonEndpoints) DeepCopyInto ¶
func (in *MachinePoolDaemonEndpoints) DeepCopyInto(out *MachinePoolDaemonEndpoints)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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.
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.
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.
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"` // 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"` }
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.
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"` // 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.
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.
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 ¶
func (in *NetworkInterfaceSource) DeepCopy() *NetworkInterfaceSource
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.
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"` // IPs are the ips allocated for the network interface. IPs []commonv1alpha1.IP `json:"ips,omitempty"` // VirtualIP is the virtual ip allocated for the network interface. VirtualIP *commonv1alpha1.IP `json:"virtualIP,omitempty"` // State represents the attachment state of a NetworkInterface. State NetworkInterfaceState `json:"state,omitempty"` // LastStateTransitionTime is the last time the State transitioned. LastStateTransitionTime *metav1.Time `json:"lastStateTransitionTime,omitempty"` }
NetworkInterfaceStatus reports the status of an NetworkInterfaceSource.
func (*NetworkInterfaceStatus) DeepCopy ¶
func (in *NetworkInterfaceStatus) DeepCopy() *NetworkInterfaceStatus
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.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSource ¶
type VolumeSource struct { // VolumeRef instructs to use the specified Volume as source for the attachment. VolumeRef *corev1.LocalObjectReference `json:"volumeRef,omitempty"` // EmptyDisk instructs to use a Volume offered by the machine pool provider. EmptyDisk *EmptyDiskVolumeSource `json:"emptyDisk,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.
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"` }
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.