v1beta1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	InfraGroup   = "infrastructure.cluster.x-k8s.io"
	InfraVersion = "v1beta1"
)

API Info.

View Source
const (
	AnnotationElementalRegistrationName      = "elementalregistration.infrastructure.cluster.x-k8s.io/name"
	AnnotationElementalRegistrationNamespace = "elementalregistration.infrastructure.cluster.x-k8s.io/namespace"
	AnnotationElementalHostPublicKey         = "elementalhost.infrastructure.cluster.x-k8s.io/pub-key"
)

Annotations.

View Source
const (
	LabelElementalHostMachineName  = "elementalhost.infrastructure.cluster.x-k8s.io/machine-name"
	LabelElementalHostInstalled    = "elementalhost.infrastructure.cluster.x-k8s.io/installed"
	LabelElementalHostBootstrapped = "elementalhost.infrastructure.cluster.x-k8s.io/bootstrapped"
	LabelElementalHostNeedsReset   = "elementalhost.infrastructure.cluster.x-k8s.io/needs-reset"
	LabelElementalHostReset        = "elementalhost.infrastructure.cluster.x-k8s.io/reset"
)

Labels.

View Source
const (
	// RegistrationReady describes the Host registration phase.
	RegistrationReady clusterv1.ConditionType = "RegistrationReady"
	// RegistrationFailedReason indicates a failure within the registration process.
	// Since the ElementalHost creation starts this process, this reason most likely indicates
	// a post-registration failure, for example if the elemental-agent was unable to install
	// its identity file into the just registered host.
	RegistrationFailedReason = "RegistrationFailed"

	// InstallationReady describes the Host installation phase.
	InstallationReady clusterv1.ConditionType = "InstallationReady"
	// WaitingForInstallationReason indicates that this Host was registered but no installation has taken place yet.
	WaitingForInstallationReason                                     = "WaitingForInstallation"
	WaitingForInstallationReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo
	// CloudConfigInstallationFailedReason indicates a failure when applying the registration cloud-config to the host.
	CloudConfigInstallationFailedReason = "CloudConfigInstallationFailed"
	// InstallationFailedReason indicates a failure within the installation process.
	InstallationFailedReason = "InstallationFailed"

	// BootstrapReady describes the Host bootstrapping phase.
	BootstrapReady clusterv1.ConditionType = "BootstrapReady"
	// WaitingForBootstrapReason indicates that the bootstrap was applied.
	WaitingForBootstrapReason                                     = "WaitingForBootstrap"
	WaitingForBootstrapReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo
	// BootstrapFailedReason indicates a failure with bootstrapping the host.
	BootstrapFailedReason = "BootstrapFailed"

	// ResetReady describes the Host reset phase.
	ResetReady clusterv1.ConditionType = "ResetReady"
	// WaitingForResetReason indicates that the Host reset was triggered.
	WaitingForResetReason                                     = "WaitingForReset"
	WaitingForResetReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo
	// ResetFailedReason indicates that the Host reset failed.
	ResetFailedReason = "ResetFailed"
)

ElementalHost Conditions and Reasons.

View Source
const (
	// AssociationReady describes the ElementalMachine to ElementalHost association status.
	AssociationReady clusterv1.ConditionType = "AssociationReady"
	// MissingMachineOwnerReason indicates the ElementalMachine is not owner by any CAPI Machine.
	MissingMachineOwnerReason = "MissingMachineOwner"
	// MissingAssociatedClusterReason indicates the ElementalMachine is not part of any CAPI Cluster.
	MissingAssociatedClusterReason = "MissingAssociatedCluster"
	// MissingClusterInfrastructureReadyReason indicates the CAPI Cluster Status.InfrastructureReady is false.
	MissingClusterInfrastructureReadyReason = "MissingClusterInfrastructureReady"
	// MissingBootstrapSecretReason indicates that no bootstrap secret has been found.
	MissingBootstrapSecretReason = "MissingBootstrapSecret"
	// MissingAvailableHostsReason indicates that no ElementalHost is available for association.
	MissingAvailableHostsReason                                     = "MissingAvailableHosts"
	MissingAvailableHostsReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityWarning
	// AssociatedHostNotFoundReason indicates that a previously associated ElementalHost is not found.
	// This can be the consequence of deleting an existing ElementalHost, for example to replace defective hardware.
	// This Reason should be transient as the provider should try to associate the ElementalMachine with a new available ElementalHost.
	AssociatedHostNotFoundReason                                     = "AssociatedHostNotFound"
	AssociatedHostNotFoundReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityWarning

	// HostReady summarizes the status of the associated ElementalHost.
	HostReady clusterv1.ConditionType = "HostReady"
	// HostWaitingForInstallReason indicates the associated ElementalHost was not installed yet.
	// This can only happen if association was manually edited by the user.
	// In normal cirumstances only ElementalHosts must be installed first to be selected for association.
	HostWaitingForInstallReason = "HostWaitingForInstall"
	// HostWaitingForBootstrapReason indicates that the bootstrap was applied on the host
	// and the provider is waiting for success confirmation.
	HostWaitingForBootstrapReason                                     = "HostWaitingForBootstrap"
	HostWaitingForBootstrapReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo

	// ProviderIDReady describes the ElementalMachine to downstream cluster node link status.
	ProviderIDReady clusterv1.ConditionType = "ProviderIDReady"
	// NodeNotFoundReason indicates that the downstream cluster node associated to this ElementalMachine is not found.
	// This can happen if the node was manually deleted from the downstream cluster.
	// This error is not recoverable, but it is possible to delete this ElementalMachine to rollout a new one.
	NodeNotFoundReason = "NodeNotFound"
	// WaitingForControlPlaneReason indicates that the downstream cluster has no initialized control plane.
	// This can happen if no CNI is running on the cluster
	// or if there is any other problem initializing the control plane.
	WaitingForControlPlaneReason                                     = "WaitingForControlPlaneInitialized"
	WaitingForControlPlaneReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo
)

ElementalMachine Conditions and Reasons.

View Source
const (
	// CAPIClusterReady describes the presence of a CAPI Cluster resource owning the ElementalCluster.
	CAPIClusterReady clusterv1.ConditionType = "CAPIClusterReady"
	// MissingClusterOwnerReason indicates the ElementalCluster has no CAPI Cluster owner set.
	MissingClusterOwnerReason = "MissingClusterOwner"
	// ControlPlaneEndpointReady describes the status of the ControlPlaneEndpoint.
	ControlPlaneEndpointReady clusterv1.ConditionType = "ControlPlaneEndpointReady"
	// MissingControlPlaneEndpointReason indicates that the ElementalCluster.spec.controlPlaneEndpoint was not defined.
	MissingControlPlaneEndpointReason = "MissingControlPlaneEndpoint"
)

ElementalCluster Conditions and Reasons.

View Source
const (
	FinalizerElementalMachine = "elementalmachine.infrastructure.cluster.x-k8s.io"
)

Finalizers.

Variables

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

	// 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
)
View Source
var (
	InfraGroupVersion = schema.GroupVersion{Group: InfraGroup, Version: InfraVersion}
)

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// +optional
	// +kubebuilder:default:="/var/lib/elemental/agent"
	WorkDir string `json:"workDir,omitempty" yaml:"workDir,omitempty" mapstructure:"workDir"`
	// +optional
	// +kubebuilder:default:={"useExisting":true}
	Hostname Hostname `json:"hostname,omitempty" yaml:"hostname,omitempty" mapstructure:"hostname"`
	// +optional
	NoSMBIOS bool `json:"noSmbios,omitempty" yaml:"noSmbios,omitempty" mapstructure:"noSmbios"`
	// +optional
	Debug bool `json:"debug,omitempty" yaml:"debug,omitempty" mapstructure:"debug"`
	// +optional
	// +kubebuilder:default:="/usr/lib/elemental/plugins/elemental.so"
	OSPlugin string `json:"osPlugin,omitempty" yaml:"osPlugin,omitempty" mapstructure:"osPlugin"`
	// +optional
	// +kubebuilder:default:=10000000000
	Reconciliation time.Duration `json:"reconciliation,omitempty" yaml:"reconciliation,omitempty" mapstructure:"reconciliation"`
	// +optional
	InsecureAllowHTTP bool `json:"insecureAllowHttp,omitempty" yaml:"insecureAllowHttp,omitempty" mapstructure:"insecureAllowHttp"`
	// +optional
	InsecureSkipTLSVerify bool `json:"insecureSkipTlsVerify,omitempty" yaml:"insecureSkipTlsVerify,omitempty" mapstructure:"insecureSkipTlsVerify"`
	// +optional
	UseSystemCertPool bool `json:"useSystemCertPool,omitempty" yaml:"useSystemCertPool,omitempty" mapstructure:"useSystemCertPool"`
	// +optional
	PostInstall PostInstall `json:"postInstall,omitempty" yaml:"postInstall,omitempty" mapstructure:"postInstall"`
	// +optional
	PostReset PostReset `json:"postReset,omitempty" yaml:"postReset,omitempty" mapstructure:"postReset"`
}

func (*Agent) DeepCopy

func (in *Agent) DeepCopy() *Agent

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

func (*Agent) DeepCopyInto

func (in *Agent) DeepCopyInto(out *Agent)

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

type Config

type Config struct {
	// +optional
	Elemental Elemental `json:"elemental,omitempty" yaml:"elemental"`
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:XPreserveUnknownFields
	// +optional
	CloudConfig map[string]runtime.RawExtension `json:"cloudConfig,omitempty" yaml:"cloudConfig,omitempty"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

type Elemental

type Elemental struct {
	// +optional
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:XPreserveUnknownFields
	Install map[string]runtime.RawExtension `json:"install,omitempty" yaml:"install,omitempty"`
	// +optional
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:XPreserveUnknownFields
	Reset map[string]runtime.RawExtension `json:"reset,omitempty" yaml:"reset,omitempty"`
	// +optional
	Registration Registration `json:"registration,omitempty" yaml:"registration,omitempty"`
	// +optional
	// +kubebuilder:default:={"debug":false,"reconciliation":10000000000,"hostname":{"useExisting":false},"osPlugin":"/usr/lib/elemental/plugins/elemental.so"}
	Agent Agent `json:"agent,omitempty" yaml:"agent,omitempty"`
}

func (*Elemental) DeepCopy

func (in *Elemental) DeepCopy() *Elemental

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

func (*Elemental) DeepCopyInto

func (in *Elemental) DeepCopyInto(out *Elemental)

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

type ElementalCluster

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

	Spec   ElementalClusterSpec   `json:"spec,omitempty"`
	Status ElementalClusterStatus `json:"status,omitempty"`
}

ElementalCluster is the Schema for the elementalclusters API.

func (*ElementalCluster) DeepCopy

func (in *ElementalCluster) DeepCopy() *ElementalCluster

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

func (*ElementalCluster) DeepCopyInto

func (in *ElementalCluster) DeepCopyInto(out *ElementalCluster)

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

func (*ElementalCluster) DeepCopyObject

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

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

func (*ElementalCluster) GetConditions added in v0.4.0

func (c *ElementalCluster) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*ElementalCluster) SetConditions added in v0.4.0

func (c *ElementalCluster) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

type ElementalClusterList

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

ElementalClusterList contains a list of ElementalCluster.

func (*ElementalClusterList) DeepCopy

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

func (*ElementalClusterList) DeepCopyInto

func (in *ElementalClusterList) DeepCopyInto(out *ElementalClusterList)

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

func (*ElementalClusterList) DeepCopyObject

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

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

type ElementalClusterSpec

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

ElementalClusterSpec defines the desired state of ElementalCluster.

func (*ElementalClusterSpec) DeepCopy

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

func (*ElementalClusterSpec) DeepCopyInto

func (in *ElementalClusterSpec) DeepCopyInto(out *ElementalClusterSpec)

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

type ElementalClusterStatus

type ElementalClusterStatus struct {
	// +kubebuilder:default=false
	// Ready indicates the provider-specific infrastructure has been provisioned and is ready.
	Ready bool `json:"ready,omitempty"`

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

	// FailureDomains defines the failure domains that machines should be placed in.
	// +optional
	FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
}

ElementalClusterStatus defines the observed state of ElementalCluster.

func (*ElementalClusterStatus) DeepCopy

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

func (*ElementalClusterStatus) DeepCopyInto

func (in *ElementalClusterStatus) DeepCopyInto(out *ElementalClusterStatus)

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

type ElementalClusterTemplate

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

	Spec ElementalClusterTemplateSpec `json:"spec,omitempty"`
}

ElementalClusterTemplate is the Schema for the elementalclustertemplates API.

func (*ElementalClusterTemplate) DeepCopy

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

func (*ElementalClusterTemplate) DeepCopyInto

func (in *ElementalClusterTemplate) DeepCopyInto(out *ElementalClusterTemplate)

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

func (*ElementalClusterTemplate) DeepCopyObject

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

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

type ElementalClusterTemplateList

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

ElementalClusterTemplateList contains a list of ElementalClusterTemplate.

func (*ElementalClusterTemplateList) DeepCopy

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

func (*ElementalClusterTemplateList) DeepCopyInto

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

func (*ElementalClusterTemplateList) DeepCopyObject

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

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

type ElementalClusterTemplateResource

type ElementalClusterTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta metav1.ObjectMeta    `json:"metadata,omitempty"`
	Spec       ElementalClusterSpec `json:"spec"`
}

func (*ElementalClusterTemplateResource) DeepCopy

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

func (*ElementalClusterTemplateResource) DeepCopyInto

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

type ElementalClusterTemplateSpec

type ElementalClusterTemplateSpec struct {
	Template ElementalClusterTemplateResource `json:"template"`
}

ElementalClusterTemplateSpec defines the desired state of ElementalClusterTemplate.

func (*ElementalClusterTemplateSpec) DeepCopy

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

func (*ElementalClusterTemplateSpec) DeepCopyInto

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

type ElementalHost

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

	Spec   ElementalHostSpec   `json:"spec,omitempty"`
	Status ElementalHostStatus `json:"status,omitempty"`
}

ElementalHost is the Schema for the elementalhosts API.

func (*ElementalHost) DeepCopy

func (in *ElementalHost) DeepCopy() *ElementalHost

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

func (*ElementalHost) DeepCopyInto

func (in *ElementalHost) DeepCopyInto(out *ElementalHost)

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

func (*ElementalHost) DeepCopyObject

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

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

func (*ElementalHost) GetConditions added in v0.4.0

func (h *ElementalHost) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*ElementalHost) SetConditions added in v0.4.0

func (h *ElementalHost) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

type ElementalHostList

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

ElementalHostList contains a list of ElementalHost.

func (*ElementalHostList) DeepCopy

func (in *ElementalHostList) DeepCopy() *ElementalHostList

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

func (*ElementalHostList) DeepCopyInto

func (in *ElementalHostList) DeepCopyInto(out *ElementalHostList)

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

func (*ElementalHostList) DeepCopyObject

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

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

type ElementalHostSpec

type ElementalHostSpec struct {
	// BootstrapSecret is an optional reference to a Cluster API Secret
	// for bootstrap purpose.
	// +optional
	BootstrapSecret *corev1.ObjectReference `json:"bootstrapSecret,omitempty"`
	// MachineRef is an optional reference to a Cluster API ElementalMachine
	// using this host.
	// +optional
	MachineRef *corev1.ObjectReference `json:"machineRef,omitempty"`
	// PubKey is the host public key to verify when authenticating
	// Elemental API requests for this host.
	PubKey string `json:"pubKey,omitempty"`
}

ElementalHostSpec defines the desired state of ElementalHost.

func (*ElementalHostSpec) DeepCopy

func (in *ElementalHostSpec) DeepCopy() *ElementalHostSpec

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

func (*ElementalHostSpec) DeepCopyInto

func (in *ElementalHostSpec) DeepCopyInto(out *ElementalHostSpec)

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

type ElementalHostStatus

type ElementalHostStatus struct {
	// Conditions defines current service state of the ElementalHost.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

ElementalHostStatus defines the observed state of ElementalHost.

func (*ElementalHostStatus) DeepCopy

func (in *ElementalHostStatus) DeepCopy() *ElementalHostStatus

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

func (*ElementalHostStatus) DeepCopyInto

func (in *ElementalHostStatus) DeepCopyInto(out *ElementalHostStatus)

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

type ElementalMachine

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

	Spec   ElementalMachineSpec   `json:"spec,omitempty"`
	Status ElementalMachineStatus `json:"status,omitempty"`
}

ElementalMachine is the Schema for the elementalmachines API.

func (*ElementalMachine) DeepCopy

func (in *ElementalMachine) DeepCopy() *ElementalMachine

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

func (*ElementalMachine) DeepCopyInto

func (in *ElementalMachine) DeepCopyInto(out *ElementalMachine)

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

func (*ElementalMachine) DeepCopyObject

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

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

func (*ElementalMachine) GetConditions added in v0.4.0

func (m *ElementalMachine) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*ElementalMachine) SetConditions added in v0.4.0

func (m *ElementalMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

type ElementalMachineList

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

ElementalMachineList contains a list of ElementalMachine.

func (*ElementalMachineList) DeepCopy

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

func (*ElementalMachineList) DeepCopyInto

func (in *ElementalMachineList) DeepCopyInto(out *ElementalMachineList)

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

func (*ElementalMachineList) DeepCopyObject

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

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

type ElementalMachineSpec

type ElementalMachineSpec struct {
	// ProviderID references the associated ElementalHost.
	// (elemental://{ElementalHost.Namespace}/{ElementalHost.Name})
	// +optional
	ProviderID *string `json:"providerID,omitempty"` //nolint:tagliatelle

	// Selector can be used to associate ElementalHost that match certain labels.
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// HostRef is an optional reference to a ElementalHost
	// using this host.
	// +optional
	HostRef *corev1.ObjectReference `json:"hostRef,omitempty"`
}

ElementalMachineSpec defines the desired state of ElementalMachine.

func (*ElementalMachineSpec) DeepCopy

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

func (*ElementalMachineSpec) DeepCopyInto

func (in *ElementalMachineSpec) DeepCopyInto(out *ElementalMachineSpec)

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

type ElementalMachineStatus

type ElementalMachineStatus struct {
	// +kubebuilder:default=false
	// Ready indicates the provider-specific infrastructure has been provisioned and is ready.
	Ready bool `json:"ready,omitempty"`

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

	// FailureDomains defines the failure domains that machines should be placed in.
	// +optional
	FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
}

ElementalMachineStatus defines the observed state of ElementalMachine.

func (*ElementalMachineStatus) DeepCopy

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

func (*ElementalMachineStatus) DeepCopyInto

func (in *ElementalMachineStatus) DeepCopyInto(out *ElementalMachineStatus)

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

type ElementalMachineTemplate

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

	Spec ElementalMachineTemplateSpec `json:"spec,omitempty"`
}

ElementalMachineTemplate is the Schema for the elementalmachinetemplates API.

func (*ElementalMachineTemplate) DeepCopy

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

func (*ElementalMachineTemplate) DeepCopyInto

func (in *ElementalMachineTemplate) DeepCopyInto(out *ElementalMachineTemplate)

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

func (*ElementalMachineTemplate) DeepCopyObject

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

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

type ElementalMachineTemplateList

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

ElementalMachineTemplateList contains a list of ElementalMachineTemplate.

func (*ElementalMachineTemplateList) DeepCopy

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

func (*ElementalMachineTemplateList) DeepCopyInto

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

func (*ElementalMachineTemplateList) DeepCopyObject

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

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

type ElementalMachineTemplateSpec

type ElementalMachineTemplateSpec struct {
	Template InfraMachineTemplateResource `json:"template"`
}

ElementalMachineTemplateSpec defines the desired state of ElementalMachineTemplate.

func (*ElementalMachineTemplateSpec) DeepCopy

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

func (*ElementalMachineTemplateSpec) DeepCopyInto

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

type ElementalRegistration

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

	Spec   ElementalRegistrationSpec   `json:"spec,omitempty"`
	Status ElementalRegistrationStatus `json:"status,omitempty"`
}

ElementalRegistration is the Schema for the ElementalRegistrations API.

func (*ElementalRegistration) DeepCopy

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

func (*ElementalRegistration) DeepCopyInto

func (in *ElementalRegistration) DeepCopyInto(out *ElementalRegistration)

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

func (*ElementalRegistration) DeepCopyObject

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

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

type ElementalRegistrationList

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

ElementalRegistrationList contains a list of ElementalRegistration.

func (*ElementalRegistrationList) DeepCopy

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

func (*ElementalRegistrationList) DeepCopyInto

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

func (*ElementalRegistrationList) DeepCopyObject

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

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

type ElementalRegistrationSpec

type ElementalRegistrationSpec struct {
	// HostLabels are labels propagated to each ElementalHost object linked to this registration.
	// +optional
	HostLabels map[string]string `json:"hostLabels,omitempty"`
	// HostAnnotations are labels propagated to each ElementalHost object linked to this registration.
	// +optional
	HostAnnotations map[string]string `json:"hostAnnotations,omitempty"`
	// Config points to Elemental machine configuration.
	// +optional
	Config Config `json:"config,omitempty"`
	// PrivateKeyRef is a reference to a secret containing the private key used to generate registration tokens
	PrivateKeyRef *corev1.ObjectReference `json:"privateKeyRef,omitempty"`
}

ElementalRegistrationSpec defines the desired state of ElementalRegistration.

func (*ElementalRegistrationSpec) DeepCopy

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

func (*ElementalRegistrationSpec) DeepCopyInto

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

type ElementalRegistrationStatus

type ElementalRegistrationStatus struct{}

ElementalRegistrationStatus defines the observed state of ElementalRegistration.

func (*ElementalRegistrationStatus) DeepCopy

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

func (*ElementalRegistrationStatus) DeepCopyInto

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

type Hostname

type Hostname struct {
	// +optional
	// +kubebuilder:default:=false
	UseExisting bool `json:"useExisting,omitempty" yaml:"useExisting,omitempty" mapstructure:"useExisting"`
	// +optional
	Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty" mapstructure:"prefix"`
}

func (*Hostname) DeepCopy

func (in *Hostname) DeepCopy() *Hostname

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

func (*Hostname) DeepCopyInto

func (in *Hostname) DeepCopyInto(out *Hostname)

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

type InfraMachineTemplateResource

type InfraMachineTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Spec ElementalMachineSpec `json:"spec"`
}

func (*InfraMachineTemplateResource) DeepCopy

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

func (*InfraMachineTemplateResource) DeepCopyInto

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

type PostInstall added in v0.1.0

type PostInstall struct {
	// +optional
	Reboot bool `json:"reboot,omitempty" yaml:"reboot,omitempty" mapstructure:"reboot"`
	// +optional
	PowerOff bool `json:"powerOff,omitempty" yaml:"powerOff,omitempty" mapstructure:"powerOff"`
}

func (*PostInstall) DeepCopy added in v0.1.0

func (in *PostInstall) DeepCopy() *PostInstall

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

func (*PostInstall) DeepCopyInto added in v0.1.0

func (in *PostInstall) DeepCopyInto(out *PostInstall)

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

type PostReset added in v0.1.0

type PostReset struct {
	// +optional
	Reboot bool `json:"reboot,omitempty" yaml:"reboot,omitempty" mapstructure:"reboot"`
	// +optional
	PowerOff bool `json:"powerOff,omitempty" yaml:"powerOff,omitempty" mapstructure:"powerOff"`
}

func (*PostReset) DeepCopy added in v0.1.0

func (in *PostReset) DeepCopy() *PostReset

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

func (*PostReset) DeepCopyInto added in v0.1.0

func (in *PostReset) DeepCopyInto(out *PostReset)

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

type Registration

type Registration struct {
	// +optional
	URI string `json:"uri,omitempty" yaml:"uri,omitempty" mapstructure:"uri"`
	// +optional
	CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty" mapstructure:"caCert"`
	// +optional
	TokenDuration time.Duration `json:"tokenDuration,omitempty" yaml:"tokenDuration,omitempty" mapstructure:"tokenDuration"`
	// +optional
	Token string `json:"token,omitempty" yaml:"token,omitempty" mapstructure:"token"`
}

func (*Registration) DeepCopy

func (in *Registration) DeepCopy() *Registration

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

func (*Registration) DeepCopyInto

func (in *Registration) DeepCopyInto(out *Registration)

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