v1alpha3

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Package v1alpha3 contains API Schema definitions for the infrastructure v1alpha3 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

+kubebuilder:object:generate=true +groupName=controlplane.cluster.x-k8s.io

Index

Constants

View Source
const (
	// ProviderSetCondition reports when the nodes have .spec.Provider ID field set.
	ProviderSetCondition clusterv1.ConditionType = "ProviderSet"

	// ProviderUpdateFailedReason (Severity=Warning) documents that controller failed
	// to set ProviderID labels on all nodes.
	ProviderUpdateFailedReason = "ProviderUpdateFailed"
)
View Source
const (
	// TalosConfigValidatedCondition reports when talos has loaded and validated the config
	// for the machine.
	TalosConfigValidatedCondition clusterv1.ConditionType = "TalosConfigValidated"

	// TalosConfigValidationFailedReason (Severity=Error) documents that Talos config validation has failed.
	TalosConfigValidationFailedReason = "TalosConfigValidationFailed"
)
View Source
const (
	// TalosConfigLoadedCondition reports when talos has loaded the config
	// for the machine.
	TalosConfigLoadedCondition clusterv1.ConditionType = "TalosConfigLoaded"

	// TalosConfigLoadedationFailedReason (Severity=Error) documents that Talos config validation has failed.
	TalosConfigLoadFailedReason = "TalosConfigLoadFailed"
)
View Source
const (
	// TalosInstalledCondition reports when Talos OS was successfully installed on the node.
	TalosInstalledCondition clusterv1.ConditionType = "TalosInstalled"

	// TalosInstallationInProgressReason (Severity=Info) documents that Talos installation is in progress.
	TalosInstallationInProgressReason = "TalosInstallationInProgress"

	// TalosInstallationFailedReason (Severity=Error) documents that Talos installer has failed.
	TalosInstallationFailedReason = "TalosInstallationFailed"
)
View Source
const (
	// MachineFinalizer allows ReconcileMetalMachine to clean up resources before removing it from the apiserver.
	MachineFinalizer = "metalmachine.infrastructure.cluster.x-k8s.io"
	// MetalMachineServerRefField is used to index MetalMachines on server ref it is bound to.
	MetalMachineServerRefField = "spec.serverRef.name"
)
View Source
const (
	// ClusterFinalizer allows ReconcileMetalCluster to clean up resources before removing it from the apiserver.
	ClusterFinalizer = "metalcluster.infrastructure.cluster.x-k8s.io"
)
View Source
const ServerBindingMetalMachineRefField = "spec.metalMachineRef.name"

ServerBindingMetalMachineRefField is a reference to a field matching server binding to a metal machine.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha3"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type MetalCluster

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

	Spec   MetalClusterSpec   `json:"spec,omitempty"`
	Status MetalClusterStatus `json:"status,omitempty"`
}

MetalCluster is the Schema for the metalclusters API.

func (*MetalCluster) DeepCopy

func (in *MetalCluster) DeepCopy() *MetalCluster

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

func (*MetalCluster) DeepCopyInto

func (in *MetalCluster) DeepCopyInto(out *MetalCluster)

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

func (*MetalCluster) DeepCopyObject

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

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

func (*MetalCluster) Hub

func (*MetalCluster) Hub()

func (*MetalCluster) SetupWebhookWithManager

func (r *MetalCluster) SetupWebhookWithManager(mgr ctrl.Manager) error

type MetalClusterList

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

MetalClusterList contains a list of MetalCluster.

func (*MetalClusterList) DeepCopy

func (in *MetalClusterList) DeepCopy() *MetalClusterList

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

func (*MetalClusterList) DeepCopyInto

func (in *MetalClusterList) DeepCopyInto(out *MetalClusterList)

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

func (*MetalClusterList) DeepCopyObject

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

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

func (*MetalClusterList) Hub

func (*MetalClusterList) Hub()

func (*MetalClusterList) SetupWebhookWithManager

func (r *MetalClusterList) SetupWebhookWithManager(mgr ctrl.Manager) error

type MetalClusterSpec

type MetalClusterSpec struct {
	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint capiv1.APIEndpoint `json:"controlPlaneEndpoint"`
}

MetalClusterSpec defines the desired state of MetalCluster.

func (*MetalClusterSpec) DeepCopy

func (in *MetalClusterSpec) DeepCopy() *MetalClusterSpec

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

func (*MetalClusterSpec) DeepCopyInto

func (in *MetalClusterSpec) DeepCopyInto(out *MetalClusterSpec)

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

type MetalClusterStatus

type MetalClusterStatus struct {
	Ready bool `json:"ready"`
}

MetalClusterStatus defines the observed state of MetalCluster.

func (*MetalClusterStatus) DeepCopy

func (in *MetalClusterStatus) DeepCopy() *MetalClusterStatus

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

func (*MetalClusterStatus) DeepCopyInto

func (in *MetalClusterStatus) DeepCopyInto(out *MetalClusterStatus)

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

type MetalMachine

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

	Spec   MetalMachineSpec   `json:"spec,omitempty"`
	Status MetalMachineStatus `json:"status,omitempty"`
}

MetalMachine is the Schema for the metalmachines API.

func (*MetalMachine) DeepCopy

func (in *MetalMachine) DeepCopy() *MetalMachine

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

func (*MetalMachine) DeepCopyInto

func (in *MetalMachine) DeepCopyInto(out *MetalMachine)

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

func (*MetalMachine) DeepCopyObject

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

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

func (*MetalMachine) GetConditions

func (in *MetalMachine) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*MetalMachine) Hub

func (*MetalMachine) Hub()

func (*MetalMachine) SetConditions

func (in *MetalMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

func (*MetalMachine) SetupWebhookWithManager

func (r *MetalMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

type MetalMachineList

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

MetalMachineList contains a list of MetalMachine.

func (*MetalMachineList) DeepCopy

func (in *MetalMachineList) DeepCopy() *MetalMachineList

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

func (*MetalMachineList) DeepCopyInto

func (in *MetalMachineList) DeepCopyInto(out *MetalMachineList)

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

func (*MetalMachineList) DeepCopyObject

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

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

func (*MetalMachineList) Hub

func (*MetalMachineList) Hub()

func (*MetalMachineList) SetupWebhookWithManager

func (r *MetalMachineList) SetupWebhookWithManager(mgr ctrl.Manager) error

type MetalMachineSpec

type MetalMachineSpec struct {
	// ProviderID is the unique identifier as specified by the cloud provider.
	// +optional
	ProviderID *string `json:"providerID,omitempty"`

	ServerRef      *corev1.ObjectReference `json:"serverRef,omitempty"`
	ServerClassRef *corev1.ObjectReference `json:"serverClassRef,omitempty"`
}

MetalMachineSpec defines the desired state of MetalMachine.

func (*MetalMachineSpec) DeepCopy

func (in *MetalMachineSpec) DeepCopy() *MetalMachineSpec

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

func (*MetalMachineSpec) DeepCopyInto

func (in *MetalMachineSpec) DeepCopyInto(out *MetalMachineSpec)

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

type MetalMachineStatus

type MetalMachineStatus struct {
	// +optional
	Ready bool `json:"ready,omitempty"`

	// Addresses contains the Metal machine associated addresses.
	Addresses []clusterv1.MachineAddress `json:"addresses,omitempty"`

	// FailureReason will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a succinct value suitable
	// for machine interpretation.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`

	// Conditions defines current state of the MetalMachine.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

MetalMachineStatus defines the observed state of MetalMachine.

func (*MetalMachineStatus) DeepCopy

func (in *MetalMachineStatus) DeepCopy() *MetalMachineStatus

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

func (*MetalMachineStatus) DeepCopyInto

func (in *MetalMachineStatus) DeepCopyInto(out *MetalMachineStatus)

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

type MetalMachineTemplate

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

	Spec   MetalMachineTemplateSpec   `json:"spec,omitempty"`
	Status MetalMachineTemplateStatus `json:"status,omitempty"`
}

MetalMachineTemplate is the Schema for the metalmachinetemplates API.

func (*MetalMachineTemplate) DeepCopy

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

func (*MetalMachineTemplate) DeepCopyInto

func (in *MetalMachineTemplate) DeepCopyInto(out *MetalMachineTemplate)

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

func (*MetalMachineTemplate) DeepCopyObject

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

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

func (*MetalMachineTemplate) Hub

func (*MetalMachineTemplate) Hub()

func (*MetalMachineTemplate) SetupWebhookWithManager

func (r *MetalMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MetalMachineTemplate) ValidateCreate added in v0.6.0

func (r *MetalMachineTemplate) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*MetalMachineTemplate) ValidateDelete added in v0.6.0

func (r *MetalMachineTemplate) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*MetalMachineTemplate) ValidateUpdate added in v0.6.0

func (r *MetalMachineTemplate) ValidateUpdate(oldRaw runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type MetalMachineTemplateList

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

MetalMachineTemplateList contains a list of MetalMachineTemplate.

func (*MetalMachineTemplateList) DeepCopy

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

func (*MetalMachineTemplateList) DeepCopyInto

func (in *MetalMachineTemplateList) DeepCopyInto(out *MetalMachineTemplateList)

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

func (*MetalMachineTemplateList) DeepCopyObject

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

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

func (*MetalMachineTemplateList) Hub

func (*MetalMachineTemplateList) Hub()

func (*MetalMachineTemplateList) SetupWebhookWithManager

func (r *MetalMachineTemplateList) SetupWebhookWithManager(mgr ctrl.Manager) error

type MetalMachineTemplateResource

type MetalMachineTemplateResource struct {
	// Spec is the specification of the desired behavior of the machine.
	Spec MetalMachineSpec `json:"spec"`
}

func (*MetalMachineTemplateResource) DeepCopy

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

func (*MetalMachineTemplateResource) DeepCopyInto

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

type MetalMachineTemplateSpec

type MetalMachineTemplateSpec struct {
	Template MetalMachineTemplateResource `json:"template"`
}

MetalMachineTemplateSpec defines the desired state of MetalMachineTemplate.

func (*MetalMachineTemplateSpec) DeepCopy

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

func (*MetalMachineTemplateSpec) DeepCopyInto

func (in *MetalMachineTemplateSpec) DeepCopyInto(out *MetalMachineTemplateSpec)

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

type MetalMachineTemplateStatus

type MetalMachineTemplateStatus struct {
}

MetalMachineTemplateStatus defines the observed state of MetalMachineTemplate.

func (*MetalMachineTemplateStatus) DeepCopy

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

func (*MetalMachineTemplateStatus) DeepCopyInto

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

type ServerBinding

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

	Spec   ServerBindingSpec  `json:"spec,omitempty"`
	Status ServerBindingState `json:"status,omitempty"`
}

ServerBinding defines the binding between the MetalMachine and the Server.

ServerBinding always has matching ID with the Server object. ServerBinding optionally binds to the ServerClass which Server was picked from.

func (*ServerBinding) DeepCopy

func (in *ServerBinding) DeepCopy() *ServerBinding

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

func (*ServerBinding) DeepCopyInto

func (in *ServerBinding) DeepCopyInto(out *ServerBinding)

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

func (*ServerBinding) DeepCopyObject

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

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

func (*ServerBinding) GetConditions

func (in *ServerBinding) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*ServerBinding) Hub

func (*ServerBinding) Hub()

func (*ServerBinding) SetConditions

func (in *ServerBinding) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

func (*ServerBinding) SetupWebhookWithManager

func (r *ServerBinding) SetupWebhookWithManager(mgr ctrl.Manager) error

type ServerBindingList

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

ServerBindingList contains a list of ServerBinding.

func (*ServerBindingList) DeepCopy

func (in *ServerBindingList) DeepCopy() *ServerBindingList

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

func (*ServerBindingList) DeepCopyInto

func (in *ServerBindingList) DeepCopyInto(out *ServerBindingList)

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

func (*ServerBindingList) DeepCopyObject

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

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

func (*ServerBindingList) Hub

func (*ServerBindingList) Hub()

func (*ServerBindingList) SetupWebhookWithManager

func (r *ServerBindingList) SetupWebhookWithManager(mgr ctrl.Manager) error

type ServerBindingSpec

type ServerBindingSpec struct {
	ServerClassRef  *corev1.ObjectReference `json:"serverClassRef,omitempty"`
	MetalMachineRef corev1.ObjectReference  `json:"metalMachineRef"`

	// SideroLink describes state of the SideroLink tunnel.
	// +optional
	SideroLink SideroLinkSpec `json:"siderolink,omitempty"`

	// Addresses describes node addresses for the server.
	// +optional
	Addresses []string `json:"addresses,omitempty"`

	// Hostname describes node hostname for the server.
	// +optional
	Hostname string `json:"hostname,omitempty"`
}

ServerBindingSpec defines the spec of the ServerBinding object.

func (*ServerBindingSpec) DeepCopy

func (in *ServerBindingSpec) DeepCopy() *ServerBindingSpec

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

func (*ServerBindingSpec) DeepCopyInto

func (in *ServerBindingSpec) DeepCopyInto(out *ServerBindingSpec)

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

type ServerBindingState

type ServerBindingState struct {
	// Ready is true when matching server is found.
	// +optional
	Ready bool `json:"ready"`

	// Conditions defines current state of the ServerBinding.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

ServerBindingState defines the observed state of ServerBinding.

func (*ServerBindingState) DeepCopy

func (in *ServerBindingState) DeepCopy() *ServerBindingState

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

func (*ServerBindingState) DeepCopyInto

func (in *ServerBindingState) DeepCopyInto(out *ServerBindingState)

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

type SideroLinkSpec

type SideroLinkSpec struct {
	// NodeAddress is the tunnel address of the node.
	NodeAddress string `json:"address"`
	// NodePublicKey is the Wireguard public key of the node.
	NodePublicKey string `json:"publicKey"`
}

SideroLinkSpec defines the state of SideroLink connection.

func (*SideroLinkSpec) DeepCopy

func (in *SideroLinkSpec) DeepCopy() *SideroLinkSpec

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

func (*SideroLinkSpec) DeepCopyInto

func (in *SideroLinkSpec) DeepCopyInto(out *SideroLinkSpec)

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

Jump to

Keyboard shortcuts

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