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
- Variables
- type Agent
- type Config
- type Elemental
- type ElementalCluster
- func (in *ElementalCluster) DeepCopy() *ElementalCluster
- func (in *ElementalCluster) DeepCopyInto(out *ElementalCluster)
- func (in *ElementalCluster) DeepCopyObject() runtime.Object
- func (c *ElementalCluster) GetConditions() clusterv1.Conditions
- func (c *ElementalCluster) SetConditions(conditions clusterv1.Conditions)
- type ElementalClusterList
- type ElementalClusterSpec
- type ElementalClusterStatus
- type ElementalClusterTemplate
- type ElementalClusterTemplateList
- type ElementalClusterTemplateResource
- type ElementalClusterTemplateSpec
- type ElementalHost
- type ElementalHostList
- type ElementalHostSpec
- type ElementalHostStatus
- type ElementalMachine
- func (in *ElementalMachine) DeepCopy() *ElementalMachine
- func (in *ElementalMachine) DeepCopyInto(out *ElementalMachine)
- func (in *ElementalMachine) DeepCopyObject() runtime.Object
- func (m *ElementalMachine) GetConditions() clusterv1.Conditions
- func (m *ElementalMachine) SetConditions(conditions clusterv1.Conditions)
- type ElementalMachineList
- type ElementalMachineSpec
- type ElementalMachineStatus
- type ElementalMachineTemplate
- type ElementalMachineTemplateList
- type ElementalMachineTemplateSpec
- type ElementalRegistration
- func (in *ElementalRegistration) DeepCopy() *ElementalRegistration
- func (in *ElementalRegistration) DeepCopyInto(out *ElementalRegistration)
- func (in *ElementalRegistration) DeepCopyObject() runtime.Object
- func (m *ElementalRegistration) GetConditions() clusterv1.Conditions
- func (m *ElementalRegistration) SetConditions(conditions clusterv1.Conditions)
- type ElementalRegistrationList
- type ElementalRegistrationSpec
- type ElementalRegistrationStatus
- type HostPhase
- type Hostname
- type InfraMachineTemplateResource
- type PostAction
- type Registration
Constants ¶
const ( InfraGroup = "infrastructure.cluster.x-k8s.io" InfraVersion = "v1beta1" )
API Info.
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.
const ( LabelElementalHostMachineName = "elementalhost.infrastructure.cluster.x-k8s.io/machine-name" LabelElementalHostElementalMachineName = "elementalhost.infrastructure.cluster.x-k8s.io/elemental-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" LabelElementalHostInPlaceUpdate = "elementalhost.infrastructure.cluster.x-k8s.io/in-place-update" InPlaceUpdatePending = "pending" InPlaceUpdateDone = "done" )
Labels.
const ( PhaseRegistering = HostPhase("Registering") PhaseFinalizingRegistration = HostPhase("Finalizing Registration") PhaseInstalling = HostPhase("Installing") PhaseBootstrapping = HostPhase("Bootstrapping") PhaseRunning = HostPhase("Running") PhaseTriggeringReset = HostPhase("Triggering Reset") PhaseResetting = HostPhase("Resetting") PhaseOSVersionReconcile = HostPhase("Reconciling OS Version") )
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" // OSVersionReady describes the Host OS version reconciliation phase. OSVersionReady clusterv1.ConditionType = "OSVersionReady" // WaitingOSReconcileReason indicates that the Host OS version needs to be reconciled. WaitingOSReconcileReason = "WaitingForOSReconcile" WaitingOSReconcileReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo // InPlaceUpdateNotPendingReason indicates that the Host OS version needs to be reconciled, but no in-place-update is pending. InPlaceUpdateNotPendingReason = "InPlaceUpdateNotPending" InPlaceUpdateNotPendingReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityWarning // OSVersionReconciliationFailedReason indicates that the attempted Host OS version reconciliation failed. OSVersionReconciliationFailedReason = "OSVersionReconciliationFailed" // WaitingForPostReconcileRebootReason indicates that the Host OS version was applied and the Host is going to reboot. WaitingForPostReconcileRebootReason = "WaitingForPostReconcileReboot" WaitingForPostReconcileRebootReasonSeverity clusterv1.ConditionSeverity = clusterv1.ConditionSeverityInfo )
ElementalHost Conditions and Reasons.
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.
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.
const (
FinalizerElementalMachine = "elementalmachine.infrastructure.cluster.x-k8s.io"
)
Finalizers.
Variables ¶
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 )
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 PostAction `json:"postInstall,omitempty" yaml:"postInstall,omitempty" mapstructure:"postInstall"`
// +optional
PostReset PostAction `json:"postReset,omitempty" yaml:"postReset,omitempty" mapstructure:"postReset"`
}
func (*Agent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.
func (*Agent) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Elemental.
func (*Elemental) DeepCopyInto ¶
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 ¶
func (in *ElementalClusterList) DeepCopy() *ElementalClusterList
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 ¶
func (in *ElementalClusterSpec) DeepCopy() *ElementalClusterSpec
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 ¶
func (in *ElementalClusterStatus) DeepCopy() *ElementalClusterStatus
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 ¶
func (in *ElementalClusterTemplate) DeepCopy() *ElementalClusterTemplate
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 ¶
func (in *ElementalClusterTemplateList) DeepCopy() *ElementalClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalClusterTemplateList.
func (*ElementalClusterTemplateList) DeepCopyInto ¶
func (in *ElementalClusterTemplateList) DeepCopyInto(out *ElementalClusterTemplateList)
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 ¶
func (in *ElementalClusterTemplateResource) DeepCopy() *ElementalClusterTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalClusterTemplateResource.
func (*ElementalClusterTemplateResource) DeepCopyInto ¶
func (in *ElementalClusterTemplateResource) DeepCopyInto(out *ElementalClusterTemplateResource)
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 ¶
func (in *ElementalClusterTemplateSpec) DeepCopy() *ElementalClusterTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalClusterTemplateSpec.
func (*ElementalClusterTemplateSpec) DeepCopyInto ¶
func (in *ElementalClusterTemplateSpec) DeepCopyInto(out *ElementalClusterTemplateSpec)
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"`
// OSVersionManagement defines the OS Version and options to be reconciled
// on the host. The supported schema depends on the OSPlugin in use by
// the elementa-agent.
// +optional
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
OSVersionManagement map[string]runtime.RawExtension `json:"osVersionManagement,omitempty" yaml:"osVersionManagement,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 {
// Phase defines the current host phase
// +optional
Phase HostPhase `json:"phase,omitempty"`
// 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 ¶
func (in *ElementalMachineList) DeepCopy() *ElementalMachineList
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"`
// OSVersionManagement defines the OS Version and options to be reconciled
// on the host. The supported schema depends on the OSPlugin in use by
// the elementa-agent. Whenever an ElementalHost is associated to this
// ElementalMachine, the OSVersionManagement will be applied to it.
// +optional
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
OSVersionManagement map[string]runtime.RawExtension `json:"osVersionManagement,omitempty" yaml:"osVersionManagement,omitempty"`
}
ElementalMachineSpec defines the desired state of ElementalMachine.
func (*ElementalMachineSpec) DeepCopy ¶
func (in *ElementalMachineSpec) DeepCopy() *ElementalMachineSpec
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 ElementalMachine.
// +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 ¶
func (in *ElementalMachineStatus) DeepCopy() *ElementalMachineStatus
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 ¶
func (in *ElementalMachineTemplate) DeepCopy() *ElementalMachineTemplate
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 ¶
func (in *ElementalMachineTemplateList) DeepCopy() *ElementalMachineTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalMachineTemplateList.
func (*ElementalMachineTemplateList) DeepCopyInto ¶
func (in *ElementalMachineTemplateList) DeepCopyInto(out *ElementalMachineTemplateList)
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 ¶
func (in *ElementalMachineTemplateSpec) DeepCopy() *ElementalMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalMachineTemplateSpec.
func (*ElementalMachineTemplateSpec) DeepCopyInto ¶
func (in *ElementalMachineTemplateSpec) DeepCopyInto(out *ElementalMachineTemplateSpec)
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 ¶
func (in *ElementalRegistration) DeepCopy() *ElementalRegistration
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.
func (*ElementalRegistration) GetConditions ¶ added in v0.6.0
func (m *ElementalRegistration) GetConditions() clusterv1.Conditions
GetConditions returns the set of conditions for this object.
func (*ElementalRegistration) SetConditions ¶ added in v0.6.0
func (m *ElementalRegistration) SetConditions(conditions clusterv1.Conditions)
SetConditions sets the conditions on this 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 ¶
func (in *ElementalRegistrationList) DeepCopy() *ElementalRegistrationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalRegistrationList.
func (*ElementalRegistrationList) DeepCopyInto ¶
func (in *ElementalRegistrationList) DeepCopyInto(out *ElementalRegistrationList)
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 ¶
func (in *ElementalRegistrationSpec) DeepCopy() *ElementalRegistrationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalRegistrationSpec.
func (*ElementalRegistrationSpec) DeepCopyInto ¶
func (in *ElementalRegistrationSpec) DeepCopyInto(out *ElementalRegistrationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElementalRegistrationStatus ¶
type ElementalRegistrationStatus struct {
// Conditions defines current service state of the ElementalRegistration.
// +optional
Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}
ElementalRegistrationStatus defines the observed state of ElementalRegistration.
func (*ElementalRegistrationStatus) DeepCopy ¶
func (in *ElementalRegistrationStatus) DeepCopy() *ElementalRegistrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElementalRegistrationStatus.
func (*ElementalRegistrationStatus) DeepCopyInto ¶
func (in *ElementalRegistrationStatus) DeepCopyInto(out *ElementalRegistrationStatus)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hostname.
func (*Hostname) DeepCopyInto ¶
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 ¶
func (in *InfraMachineTemplateResource) DeepCopy() *InfraMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InfraMachineTemplateResource.
func (*InfraMachineTemplateResource) DeepCopyInto ¶
func (in *InfraMachineTemplateResource) DeepCopyInto(out *InfraMachineTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostAction ¶ added in v0.6.0
type PostAction struct {
// +optional
PowerOff bool `json:"powerOff,omitempty" yaml:"powerOff,omitempty" mapstructure:"powerOff"`
// +optional
Reboot bool `json:"reboot,omitempty" yaml:"reboot,omitempty" mapstructure:"reboot"`
}
PostAction is used to return instructions to the cli after a Phase is handled.
func (*PostAction) DeepCopy ¶ added in v0.6.0
func (in *PostAction) DeepCopy() *PostAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostAction.
func (*PostAction) DeepCopyInto ¶ added in v0.6.0
func (in *PostAction) DeepCopyInto(out *PostAction)
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.