Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the operator v1beta1 API group +kubebuilder:object:generate=true +groupName=elemental.cattle.io
Index ¶
- Constants
- Variables
- type BuildContainer
- type Config
- type ContainerImage
- type DeviceSelector
- type DeviceSelectorKey
- type DeviceSelectorOperator
- type DeviceSelectorRequirement
- type Elemental
- type ISOImage
- type ImageCommons
- type Install
- type MachineInventory
- type MachineInventoryList
- type MachineInventorySelector
- type MachineInventorySelectorList
- type MachineInventorySelectorSpec
- type MachineInventorySelectorStatus
- type MachineInventorySelectorTemplate
- type MachineInventorySelectorTemplateList
- type MachineInventorySelectorTemplateSpec
- type MachineInventorySpec
- type MachineInventoryStatus
- type MachineRegistration
- type MachineRegistrationList
- type MachineRegistrationSpec
- type MachineRegistrationStatus
- type ManagedOSImage
- type ManagedOSImageList
- type ManagedOSImageSpec
- type ManagedOSImageStatus
- type ManagedOSVersion
- func (m *ManagedOSVersion) ContainerImage() (*ContainerImage, error)
- func (in *ManagedOSVersion) DeepCopy() *ManagedOSVersion
- func (in *ManagedOSVersion) DeepCopyInto(out *ManagedOSVersion)
- func (in *ManagedOSVersion) DeepCopyObject() runtime.Object
- func (m *ManagedOSVersion) ISOImage() (*ISOImage, error)
- func (m *ManagedOSVersion) IsContainerImage() bool
- func (m *ManagedOSVersion) IsISOImage() bool
- func (m *ManagedOSVersion) MetadataObject(v interface{}) error
- type ManagedOSVersionChannel
- type ManagedOSVersionChannelList
- type ManagedOSVersionChannelSpec
- type ManagedOSVersionChannelStatus
- type ManagedOSVersionList
- type ManagedOSVersionSpec
- type ManagedOSVersionStatus
- type Metadata
- type MetadataList
- type MetadataSpec
- type MetadataStatus
- type NetworkConfig
- type NetworkTemplate
- type PlanState
- type PlanStatus
- type Platform
- type Registration
- type Reset
- type SeedImage
- type SeedImageList
- type SeedImageSpec
- type SeedImageState
- type SeedImageStatus
- type SeedImageType
- type SnapshotterConfig
- type SystemAgent
Constants ¶
const ( // ElementalManagedLabel label used to put on resources managed by the elemental operator. ElementalManagedLabel = "elemental.cattle.io/managed" // ElementalManagedOSImageVersionNameLabel label is used to filter ManagedOSImages referencing a ManagedOSVersion. ElementalManagedOSImageVersionNameLabel = "elemental.cattle.io/managed-os-version-name" // ElementalManagedOSVersionChannelLabel is used to filter a set of ManagedOSVersions given the channel they originate from. ElementalManagedOSVersionChannelLabel = "elemental.cattle.io/channel" // ElementalManagedOSVersionChannelLastSyncAnnotation reports when a ManagedOSVersion was last synced from a channel. ElementalManagedOSVersionChannelLastSyncAnnotation = "elemental.cattle.io/channel-last-sync" // ElementalManagedOSVersionNoLongerSyncedAnnotation is used to mark a no longer in sync ManagedOSVersion, this highlight it can be deleted. ElementalManagedOSVersionNoLongerSyncedAnnotation = "elemental.cattle.io/channel-no-longer-in-sync" ElementalManagedOSVersionNoLongerSyncedValue = "true" // SASecretSuffix is the suffix used to name registration service account's token secret SASecretSuffix = "-token" // TimeoutEnvVar is the environment variable key passed to pods to express a timeout TimeoutEnvVar = "ELEMENTAL_TIMEOUT" )
const ( // SuccessfullyCreatedReason documents a machine registration object that was successfully created. SuccessfullyCreatedReason = "SuccessfullyCreated" // MissingTokenOrServerURLReason documents a machine registration object missing rancher server url or failed token generation. MissingTokenOrServerURLReason = "MissingTokenOrServerURL" // RbacCreationFailureReason documents a machine registration object that has RBAC creation failures. RbacCreationFailureReason = "RbacCreationFailure" )
Machine Registration conditions
const ( // PlanCreationFailureReason documents that the secret plan owned by the machine inventory could not be created PlanCreationFailureReason = "PlanCreationFailureReason" // WaitingForPlanReason documents a machine inventory waiting for plan to applied. WaitingForPlanReason = "WaitingForPlan" // PlanFailure documents failure of plan owned by the machine inventory object. PlanFailureReason = "PlanFailure" // PlanFailure documents failure in deleting all IPClaims associated to this machine inventory. IPReleaseFailureReason = "IPReleaseFailure" // PlanSuccessfullyAppliedReason documents that plan owned by the machine inventory object was successfully applied. PlanSuccessfullyAppliedReason = "PlanSuccessfullyApplied" )
Machine Inventory conditions
const ( // AdoptedCondition documents the state of a machine selector adopting the machine inventory AdoptionReadyCondition = "AdoptionReady" // WaitingToBeAdoptedReason documents that the machine inventory is waiting to be adopted WaitingToBeAdoptedReason = "WaitingToBeAdopted" // ValidatinAdoptionReason documents that the machine inventory is in the process of validating its owner has the appropriate status ValidatingAdoptionReason = "ValidatingAdoption" // SuccessfullyAdoptedReason documents that the machine inventory is successully adopted by a machine selector SuccessfullyAdoptedReason = "SuccessfullyAdopted" // AdoptionFailureReason documents that the machine inventory adoption process failed AdoptionFailureReason = "AdoptionFailure" // NetworkConfigReady documents the state of a machine inventory network config NetworkConfigReady = "NetworkConfigReady" // NetworkConfigFailure documents a failure when reconciling the network config for this Machine Inventory. NetworkConfigFailure = "NetworkConfigFailure" // WaitingForIPAddressReason documents a machine inventory waiting for an IPAddress to be allocated by an IPAM provider. WaitingForIPAddressReason = "WaitingForIPAddress" // ReconcilingNetworkConfig documents the operator needs to do some work to reconcile the NetworkConfig. ReconcilingNetworkConfig = "ReconcilingNetworkConfig" )
const ( // WaitingForInventoryReason documents that the machine selector is waiting for a matching machine inventory. WaitingForInventoryReason = "WaitingForInventory" // SuccessfullyUpdatedPlanReason documents that the machine selector successfully updated secret plan with bootstrap. SuccessfullyUpdatedPlanReason = "SuccessfullyUpdatedPlan" // FailedToUpdatePlanReason documents that the machine selector failed to update secret plan with bootstrap. FailedToUpdatePlanReason = "FailedToUpdatePlan" // FailedToSetAdressesReason documents that the machine selector controller failed to set adresses. FailedToSetAdressesReason = "FailedToSetAdresses" // SelectorReadyReason documents that the machine selector is ready. SelectorReadyReason = "SelectorReady" )
Machine Selector conditions
const ( // InventoryReady documents the state of the selector adopting an inventory InventoryReadyCondition = "InventoryReady" // WaitForInventoryCheckReason documents the selector is waiting for the inventory to validate the adoption WaitForInventoryCheckReason = "WaitForInventoryCheck" // SuccessfullyAdoptedInventoryReason documents that the machine selector successfully adopted machine inventory. SuccessfullyAdoptedInventoryReason = "SuccessfullyAdoptedInventory" // FailedToAdoptInventoryReason documents that the machine selector failed to adopt machine inventory. FailedToAdoptInventoryReason = "FailedToAdoptInventory" )
const ( // InvalidConfigurationReason documents that managed OS version channel has invalid configuration. InvalidConfigurationReason = "InvalidConfiguration" // SyncingReason documents that managed OS version channel is synchronizing managed OS versions SyncingReason = "Synchronizing" // SyncedReason documents that managed OS version channel finalized synchroniziation and managed OS versions, if any, were created SyncedReason = "Synchronized" // FailedToSyncReason documents that managed OS version channel failed synchronization FailedToSyncReason = "FailedToSync" // FailedToCreatePodReason documents that managed OS version channel failed to create the synchronization pod FailedToCreatePodReason = "FailedToCreatePod" // ChannelDisabledReason documents that the managed OS version channel is not enabled ChannelDisabledReason = "ChannelDisabled" )
Managed OS Version Channel conditions
const ( // FleetBundleCreation documents the state of the fleet bundle creation. FleetBundleCreation = "FleetBundleCreation" // FleetBundleCreatedSuccessReason documents that managed OS image controller fleet bundle was created successfully. FleetBundleCreateSuccessReason = "FleetBundleCreateSuccess" // FleetBundleCreateFailureReason documents that managed OS image controller failed to create fleet bundle. FleetBundleCreateFailureReason = "FleetBundleCreateFailure" )
Managed OS Image conditions
const ( // ResourcesNotCreatedYet documents resources creation not started yet. ResourcesNotCreatedYet = "ResourcesNotCreatedYet" // SetOwnerFailureReason documents failure setting MachineRegistratioRef as SeedImage owner. SetOwnerFailureReason = "RegistrationNotFound" // PodCreationFailureReason documents Pod creation failure. PodCreationFailureReason = "PodCreationFailure" // ServiceCreationFailureReason documents Service creation failure. ServiceCreationFailureReason = "ServiceCreationFailure" // ResourcesSuccessfullyCreatedReason documents all the resources needed to start the build image task were successfully created. ResourcesSuccessfullyCreatedReason = "ResourcesSuccessfullyCreated" )
Seed Image conditions
const ( // SeedImageConditionReady is the condition type tracking the state of the seed image build pod. SeedImageConditionReady = "SeedImageReady" // SeedImageBuildNotStartedReason documents seed image build job not started. SeedImageBuildNotStartedReason = "SeedImageBuildNotStarted" // SeedImageBuildOngoingReason documents seed image build job is ongoing. SeedImageBuildOngoingReason = "SeedImageBuildOngoing" // SeedImageBuildFailureReason documents seed image build job failure. SeedImageBuildFailureReason = "SeedImageBuildFailure" // SeedIMageExposeFailureReason documents failure to set the URL to download the seed image. SeedImageExposeFailureReason = "SeedImageExposeFailure" // SeedImageBuildSuccessReason documents seed image build job success. SeedImageBuildSuccessReason = "SeedImageBuildSuccess" // SeedImageBuildDeadline documents seed image build deadline has elapsed. SeedImageBuildDeadline = "SeedImageBuildDeadline" // SeedImageBuildUnknown documents seed image build job in unknown status. SeedImageBuildUnknown = "SeedImageBuildUnknown" )
const ( MachineInventoryFinalizer = "machineinventory.elemental.cattle.io" PlanSecretType corev1.SecretType = "elemental.cattle.io/plan" PlanTypeAnnotation = "elemental.cattle.io/plan.type" PlanTypeEmpty = "empty" PlanTypeBootstrap = "bootstrap" PlanTypeReset = "reset" MachineInventoryResettableAnnotation = "elemental.cattle.io/resettable" MachineInventoryOSUnmanagedAnnotation = "elemental.cattle.io/os.unmanaged" )
const ( DeviceSelectorOpIn DeviceSelectorOperator = "In" DeviceSelectorOpNotIn DeviceSelectorOperator = "NotIn" DeviceSelectorOpGt DeviceSelectorOperator = "Gt" DeviceSelectorOpLt DeviceSelectorOperator = "Lt" DeviceSelectorKeyName DeviceSelectorKey = "Name" DeviceSelectorKeySize DeviceSelectorKey = "Size" )
const (
MachineRegistrationFinalizer = "machineregistration.elemental.cattle.io"
)
const (
ManagedOSVersionFinalizer = "managedosversion.elemental.cattle.io"
)
const (
// ReadyCondition indicates the state of object.
ReadyCondition = "Ready"
)
const TPMRandomSeedValue = -1
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "elemental.cattle.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 )
Functions ¶
This section is empty.
Types ¶
type BuildContainer ¶ added in v1.5.0
type BuildContainer struct {
// Name of the spawned container
// +optional
Name string `json:"name"`
// Image container image to run
// +optional
Image string `json:"image"`
// Command same as corev1.Container.Command
// +optional
Command []string `json:"command"`
// Args same as corev1.Container.Args
// +optional
Args []string `json:"args"`
// Args same as corev1.Container.ImagePullPolicy
// +optional
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`
}
func (*BuildContainer) DeepCopy ¶ added in v1.5.0
func (in *BuildContainer) DeepCopy() *BuildContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildContainer.
func (*BuildContainer) DeepCopyInto ¶ added in v1.5.0
func (in *BuildContainer) DeepCopyInto(out *BuildContainer)
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"`
// +optional
Network NetworkTemplate `json:"network,omitempty" yaml:"network,omitempty"`
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
// +optional
CloudConfig map[string]runtime.RawExtension `json:"cloud-config,omitempty" yaml:"cloud-config,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 ContainerImage ¶
type ContainerImage struct {
ImageCommons `json:",inline"`
ImageURI string `json:"upgradeImage,omitempty"`
}
ContainerImage is the metadata for ManagedOSVersions which carries over information about the upgrade
func (*ContainerImage) DeepCopy ¶
func (in *ContainerImage) DeepCopy() *ContainerImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImage.
func (*ContainerImage) DeepCopyInto ¶
func (in *ContainerImage) DeepCopyInto(out *ContainerImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeviceSelector ¶ added in v1.4.0
type DeviceSelector []DeviceSelectorRequirement
func (DeviceSelector) DeepCopy ¶ added in v1.4.0
func (in DeviceSelector) DeepCopy() DeviceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSelector.
func (DeviceSelector) DeepCopyInto ¶ added in v1.4.0
func (in DeviceSelector) DeepCopyInto(out *DeviceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeviceSelectorKey ¶ added in v1.4.0
type DeviceSelectorKey string
type DeviceSelectorOperator ¶ added in v1.4.0
type DeviceSelectorOperator string
type DeviceSelectorRequirement ¶ added in v1.4.0
type DeviceSelectorRequirement struct {
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum=Name;Size
Key DeviceSelectorKey `json:"key"`
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum=In;NotIn;Gt;Lt
Operator DeviceSelectorOperator `json:"operator"`
// +optional
Values []string `json:"values,omitempty"`
}
func (*DeviceSelectorRequirement) DeepCopy ¶ added in v1.4.0
func (in *DeviceSelectorRequirement) DeepCopy() *DeviceSelectorRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSelectorRequirement.
func (*DeviceSelectorRequirement) DeepCopyInto ¶ added in v1.4.0
func (in *DeviceSelectorRequirement) DeepCopyInto(out *DeviceSelectorRequirement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Elemental ¶
type Elemental struct {
// +optional
Install Install `json:"install,omitempty" yaml:"install,omitempty"`
// +optional
// +kubebuilder:default:={"reset-persistent":true,"reset-oem":true,"reboot":true}
Reset Reset `json:"reset,omitempty" yaml:"reset,omitempty"`
// +optional
Registration Registration `json:"registration,omitempty" yaml:"registration,omitempty"`
// +optional
SystemAgent SystemAgent `json:"system-agent,omitempty" yaml:"system-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 ISOImage ¶ added in v1.2.3
type ISOImage struct {
ImageCommons `json:",inline"`
ImageURI string `json:"uri,omitempty"`
}
ISO is the basic set of data to refer to an specific ISO
func (*ISOImage) DeepCopy ¶ added in v1.2.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ISOImage.
func (*ISOImage) DeepCopyInto ¶ added in v1.2.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageCommons ¶ added in v1.2.3
type ImageCommons struct {
DisplayName string `json:"displayName,omitempty"`
}
ImageCommons is the basic set of data every single image type has
func (*ImageCommons) DeepCopy ¶ added in v1.2.3
func (in *ImageCommons) DeepCopy() *ImageCommons
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageCommons.
func (*ImageCommons) DeepCopyInto ¶ added in v1.2.3
func (in *ImageCommons) DeepCopyInto(out *ImageCommons)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Install ¶
type Install struct {
// +optional
Firmware string `json:"firmware,omitempty" yaml:"firmware,omitempty"`
// +optional
Device string `json:"device,omitempty" yaml:"device,omitempty"`
// +optional
DeviceSelector DeviceSelector `json:"device-selector,omitempty" yaml:"device-selector,omitempty"`
// +optional
NoFormat bool `json:"no-format,omitempty" yaml:"no-format,omitempty"`
// +optional
ConfigURLs []string `json:"config-urls,omitempty" yaml:"config-urls,omitempty"`
// +optional
ISO string `json:"iso,omitempty" yaml:"iso,omitempty"`
// +optional
SystemURI string `json:"system-uri,omitempty" yaml:"system-uri,omitempty"`
// +optional
Debug bool `json:"debug,omitempty" yaml:"debug,omitempty"`
// +optional
TTY string `json:"tty,omitempty" yaml:"tty,omitempty"`
// +optional
PowerOff bool `json:"poweroff,omitempty" yaml:"poweroff,omitempty"`
// +optional
Reboot bool `json:"reboot,omitempty" yaml:"reboot,omitempty"`
// +optional
EjectCD bool `json:"eject-cd,omitempty" yaml:"eject-cd,omitempty"`
// +optional
DisableBootEntry bool `json:"disable-boot-entry,omitempty" yaml:"disable-boot-entry,omitempty"`
// +optional
ConfigDir string `json:"config-dir,omitempty" yaml:"config-dir,omitempty"`
// +optional
// +kubebuilder:default:={"type": "loopdevice", "maxSnaps": 2}
Snapshotter SnapshotterConfig `json:"snapshotter,omitempty" yaml:"snapshotter,omitempty"`
}
func (*Install) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Install.
func (*Install) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineInventory ¶
type MachineInventory struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MachineInventorySpec `json:"spec,omitempty"`
Status MachineInventoryStatus `json:"status,omitempty"`
}
func (*MachineInventory) DeepCopy ¶
func (in *MachineInventory) DeepCopy() *MachineInventory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventory.
func (*MachineInventory) DeepCopyInto ¶
func (in *MachineInventory) DeepCopyInto(out *MachineInventory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInventory) DeepCopyObject ¶
func (in *MachineInventory) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInventoryList ¶
type MachineInventoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MachineInventory `json:"items"`
}
MachineInventoryList contains a list of MachineInventories.
func (*MachineInventoryList) DeepCopy ¶
func (in *MachineInventoryList) DeepCopy() *MachineInventoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventoryList.
func (*MachineInventoryList) DeepCopyInto ¶
func (in *MachineInventoryList) DeepCopyInto(out *MachineInventoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInventoryList) DeepCopyObject ¶
func (in *MachineInventoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInventorySelector ¶
type MachineInventorySelector struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MachineInventorySelectorSpec `json:"spec,omitempty"`
Status MachineInventorySelectorStatus `json:"status,omitempty"`
}
func (*MachineInventorySelector) DeepCopy ¶
func (in *MachineInventorySelector) DeepCopy() *MachineInventorySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelector.
func (*MachineInventorySelector) DeepCopyInto ¶
func (in *MachineInventorySelector) DeepCopyInto(out *MachineInventorySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInventorySelector) DeepCopyObject ¶
func (in *MachineInventorySelector) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInventorySelectorList ¶
type MachineInventorySelectorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MachineInventorySelector `json:"items"`
}
MachineInventorySelectorList contains a list of MachineInventorySelectors.
func (*MachineInventorySelectorList) DeepCopy ¶
func (in *MachineInventorySelectorList) DeepCopy() *MachineInventorySelectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelectorList.
func (*MachineInventorySelectorList) DeepCopyInto ¶
func (in *MachineInventorySelectorList) DeepCopyInto(out *MachineInventorySelectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInventorySelectorList) DeepCopyObject ¶
func (in *MachineInventorySelectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInventorySelectorSpec ¶
type MachineInventorySelectorSpec struct {
// ProviderID the identifier for the elemental instance.
// NOTE: Functionality not implemented yet.
ProviderID string `json:"providerID,omitempty"`
// Selector selector to choose elemental machines.
Selector metav1.LabelSelector `json:"selector,omitempty"`
}
func (*MachineInventorySelectorSpec) DeepCopy ¶
func (in *MachineInventorySelectorSpec) DeepCopy() *MachineInventorySelectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelectorSpec.
func (*MachineInventorySelectorSpec) DeepCopyInto ¶
func (in *MachineInventorySelectorSpec) DeepCopyInto(out *MachineInventorySelectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineInventorySelectorStatus ¶
type MachineInventorySelectorStatus struct {
// Conditions describe the state of the machine selector object.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// +optional
Ready bool `json:"ready,omitempty"`
// Addresses represent machine addresses.
// +optional
Addresses clusterv1.MachineAddresses `json:"addresses,omitempty"`
// BootstrapPlanChecksum represent bootstrap plan checksum.
// +optional
BootstrapPlanChecksum string `json:"bootstrapPlanChecksum,omitempty"`
// MachineInventoryRef reference to the machine inventory that belongs to the selector.
// +optional
MachineInventoryRef *corev1.LocalObjectReference `json:"machineInventoryRef,omitempty"`
}
func (*MachineInventorySelectorStatus) DeepCopy ¶
func (in *MachineInventorySelectorStatus) DeepCopy() *MachineInventorySelectorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelectorStatus.
func (*MachineInventorySelectorStatus) DeepCopyInto ¶
func (in *MachineInventorySelectorStatus) DeepCopyInto(out *MachineInventorySelectorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineInventorySelectorTemplate ¶
type MachineInventorySelectorTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MachineInventorySelectorTemplateSpec `json:"spec,omitempty"`
}
func (*MachineInventorySelectorTemplate) DeepCopy ¶
func (in *MachineInventorySelectorTemplate) DeepCopy() *MachineInventorySelectorTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelectorTemplate.
func (*MachineInventorySelectorTemplate) DeepCopyInto ¶
func (in *MachineInventorySelectorTemplate) DeepCopyInto(out *MachineInventorySelectorTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInventorySelectorTemplate) DeepCopyObject ¶
func (in *MachineInventorySelectorTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInventorySelectorTemplateList ¶
type MachineInventorySelectorTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MachineInventorySelectorTemplate `json:"items"`
}
MachineInventorySelectorTemplateList contains a list of MachineInventorySelectorTemplates.
func (*MachineInventorySelectorTemplateList) DeepCopy ¶
func (in *MachineInventorySelectorTemplateList) DeepCopy() *MachineInventorySelectorTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelectorTemplateList.
func (*MachineInventorySelectorTemplateList) DeepCopyInto ¶
func (in *MachineInventorySelectorTemplateList) DeepCopyInto(out *MachineInventorySelectorTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineInventorySelectorTemplateList) DeepCopyObject ¶
func (in *MachineInventorySelectorTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineInventorySelectorTemplateSpec ¶
type MachineInventorySelectorTemplateSpec struct {
// Template machine inventory selector template.
Template MachineInventorySelector `json:"template"`
}
func (*MachineInventorySelectorTemplateSpec) DeepCopy ¶
func (in *MachineInventorySelectorTemplateSpec) DeepCopy() *MachineInventorySelectorTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySelectorTemplateSpec.
func (*MachineInventorySelectorTemplateSpec) DeepCopyInto ¶
func (in *MachineInventorySelectorTemplateSpec) DeepCopyInto(out *MachineInventorySelectorTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineInventorySpec ¶
type MachineInventorySpec struct {
// TPMHash the hash of the TPM EK public key. This is used if you are
// using TPM2 to identifiy nodes. You can obtain the TPM by
// running `rancherd get-tpm-hash` on the node. Or nodes can
// report their TPM hash by using the MachineRegister.
// +optional
TPMHash string `json:"tpmHash,omitempty"`
// MachineHash the hash of the identifier used by the host to identify
// to the operator. This is used when the host authenticates without TPM.
// Both the authentication method and the identifier used to derive the hash
// depend upon the MachineRegistration spec.config.elemental.registration.auth value.
// +optional
MachineHash string `json:"machineHash,omitempty"`
// IPAddressClaims is a map of IPAddressClaim associated to this machine.
// The map key is the ipAddressPool.name.
IPAddressClaims map[string]*corev1.ObjectReference `json:"ipAddressClaims,omitempty"`
// IPAddressPools is a list of IPAddressPool associated to this machine.
IPAddressPools map[string]*corev1.TypedLocalObjectReference `json:"ipAddressPools,omitempty"`
// NetworkConfig is the final NetworkConfig.
Network NetworkConfig `json:"network,omitempty"`
}
func (*MachineInventorySpec) DeepCopy ¶
func (in *MachineInventorySpec) DeepCopy() *MachineInventorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySpec.
func (*MachineInventorySpec) DeepCopyInto ¶
func (in *MachineInventorySpec) DeepCopyInto(out *MachineInventorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineInventoryStatus ¶
type MachineInventoryStatus struct {
// Conditions describe the state of the machine inventory object.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
// PlanStatus reflect the status of the plan owned by the machine inventory object.
// +optional
Plan *PlanStatus `json:"plan,omitempty"`
}
func (*MachineInventoryStatus) DeepCopy ¶
func (in *MachineInventoryStatus) DeepCopy() *MachineInventoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventoryStatus.
func (*MachineInventoryStatus) DeepCopyInto ¶
func (in *MachineInventoryStatus) DeepCopyInto(out *MachineInventoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineRegistration ¶
type MachineRegistration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MachineRegistrationSpec `json:"spec,omitempty"`
Status MachineRegistrationStatus `json:"status,omitempty"`
}
func (*MachineRegistration) DeepCopy ¶
func (in *MachineRegistration) DeepCopy() *MachineRegistration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistration.
func (*MachineRegistration) DeepCopyInto ¶
func (in *MachineRegistration) DeepCopyInto(out *MachineRegistration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineRegistration) DeepCopyObject ¶
func (in *MachineRegistration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (MachineRegistration) GetClientRegistrationConfig ¶ added in v1.2.3
func (m MachineRegistration) GetClientRegistrationConfig(cacert string) (*Config, error)
GetClientRegistrationConfig returns the configuration required by the elemental-register to register itself against this MachineRegistration instance.
type MachineRegistrationList ¶
type MachineRegistrationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MachineRegistration `json:"items"`
}
MachineRegistrationList contains a list of MachineRegistrations.
func (*MachineRegistrationList) DeepCopy ¶
func (in *MachineRegistrationList) DeepCopy() *MachineRegistrationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistrationList.
func (*MachineRegistrationList) DeepCopyInto ¶
func (in *MachineRegistrationList) DeepCopyInto(out *MachineRegistrationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineRegistrationList) DeepCopyObject ¶
func (in *MachineRegistrationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineRegistrationSpec ¶
type MachineRegistrationSpec struct {
// +optional
MachineName string `json:"machineName,omitempty"`
// MachineInventoryLabels label to be added to the created MachineInventory object.
// +optional
MachineInventoryLabels map[string]string `json:"machineInventoryLabels,omitempty"`
// MachineInventoryAnnotations annotations to be added to the created MachineInventory object.
// +optional
MachineInventoryAnnotations map[string]string `json:"machineInventoryAnnotations,omitempty"`
// Config the cloud config that will be used to provision the node.
// +optional
Config *Config `json:"config,omitempty"`
}
func (*MachineRegistrationSpec) DeepCopy ¶
func (in *MachineRegistrationSpec) DeepCopy() *MachineRegistrationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistrationSpec.
func (*MachineRegistrationSpec) DeepCopyInto ¶
func (in *MachineRegistrationSpec) DeepCopyInto(out *MachineRegistrationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineRegistrationStatus ¶
type MachineRegistrationStatus struct {
// Conditions describe the state of the machine registration object.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
// RegistrationURL is the URL for registering a new machine.
// +optional
RegistrationURL string `json:"registrationURL,omitempty"`
// RegistrationToken a token for registering a machine.
// +optional
RegistrationToken string `json:"registrationToken,omitempty"`
// ServiceAccountRef a reference to the service account created by the machine registration.
// +optional
ServiceAccountRef *corev1.ObjectReference `json:"serviceAccountRef,omitempty"` // TODO: use LocalObjectReference
}
func (*MachineRegistrationStatus) DeepCopy ¶
func (in *MachineRegistrationStatus) DeepCopy() *MachineRegistrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistrationStatus.
func (*MachineRegistrationStatus) DeepCopyInto ¶
func (in *MachineRegistrationStatus) DeepCopyInto(out *MachineRegistrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedOSImage ¶
type ManagedOSImage struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagedOSImageSpec `json:"spec,omitempty"`
Status ManagedOSImageStatus `json:"status,omitempty"`
}
func (*ManagedOSImage) DeepCopy ¶
func (in *ManagedOSImage) DeepCopy() *ManagedOSImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImage.
func (*ManagedOSImage) DeepCopyInto ¶
func (in *ManagedOSImage) DeepCopyInto(out *ManagedOSImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedOSImage) DeepCopyObject ¶
func (in *ManagedOSImage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedOSImageList ¶
type ManagedOSImageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ManagedOSImage `json:"items"`
}
ManagedOSImageList contains a list of ManagedOSImages.
func (*ManagedOSImageList) DeepCopy ¶
func (in *ManagedOSImageList) DeepCopy() *ManagedOSImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImageList.
func (*ManagedOSImageList) DeepCopyInto ¶
func (in *ManagedOSImageList) DeepCopyInto(out *ManagedOSImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedOSImageList) DeepCopyObject ¶
func (in *ManagedOSImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedOSImageSpec ¶
type ManagedOSImageSpec struct {
// +optional
OSImage string `json:"osImage,omitempty"`
// +optional
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
CloudConfig map[string]runtime.RawExtension `json:"cloudConfig,omitempty" yaml:"cloudConfig,omitempty"`
// +optional
NodeSelector *metav1.LabelSelector `json:"nodeSelector,omitempty"`
// +optional
Concurrency *int64 `json:"concurrency,omitempty"`
// +optional
Prepare *upgradev1.ContainerSpec `json:"prepare,omitempty"`
// +optional
Cordon *bool `json:"cordon,omitempty"`
// +nullable
// +kubebuilder:default:={"force":true,"skipWaitForDeleteTimeout":60,"ignoreDaemonSets":true,"deleteLocalData":true}
Drain *upgradev1.DrainSpec `json:"drain"`
// +optional
UpgradeContainer *upgradev1.ContainerSpec `json:"upgradeContainer,omitempty"`
// +optional
ManagedOSVersionName string `json:"managedOSVersionName,omitempty"`
// +optional
ClusterRolloutStrategy *fleet.RolloutStrategy `json:"clusterRolloutStrategy,omitempty"`
// +optional
Targets []fleet.BundleTarget `json:"clusterTargets,omitempty"`
}
func (*ManagedOSImageSpec) DeepCopy ¶
func (in *ManagedOSImageSpec) DeepCopy() *ManagedOSImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImageSpec.
func (*ManagedOSImageSpec) DeepCopyInto ¶
func (in *ManagedOSImageSpec) DeepCopyInto(out *ManagedOSImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedOSImageStatus ¶
type ManagedOSImageStatus struct {
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
func (*ManagedOSImageStatus) DeepCopy ¶
func (in *ManagedOSImageStatus) DeepCopy() *ManagedOSImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImageStatus.
func (*ManagedOSImageStatus) DeepCopyInto ¶
func (in *ManagedOSImageStatus) DeepCopyInto(out *ManagedOSImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedOSVersion ¶
type ManagedOSVersion struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagedOSVersionSpec `json:"spec,omitempty"`
Status ManagedOSVersionStatus `json:"status,omitempty"`
}
func (*ManagedOSVersion) ContainerImage ¶ added in v1.2.3
func (m *ManagedOSVersion) ContainerImage() (*ContainerImage, error)
ContainerImage returns the metadata of ManegedOSVersion of container type
func (*ManagedOSVersion) DeepCopy ¶
func (in *ManagedOSVersion) DeepCopy() *ManagedOSVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersion.
func (*ManagedOSVersion) DeepCopyInto ¶
func (in *ManagedOSVersion) DeepCopyInto(out *ManagedOSVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedOSVersion) DeepCopyObject ¶
func (in *ManagedOSVersion) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ManagedOSVersion) ISOImage ¶ added in v1.2.3
func (m *ManagedOSVersion) ISOImage() (*ISOImage, error)
ISOImage returns the metadata of ManegedOSVersion of container type
func (*ManagedOSVersion) IsContainerImage ¶
func (m *ManagedOSVersion) IsContainerImage() bool
IsContainerImage returns true if the metadata attached to the version is refered to container image type
func (*ManagedOSVersion) IsISOImage ¶ added in v1.2.3
func (m *ManagedOSVersion) IsISOImage() bool
IsISOImage returns true if the metadata attached to the version is refered to container image type
func (*ManagedOSVersion) MetadataObject ¶
func (m *ManagedOSVersion) MetadataObject(v interface{}) error
MetadataObject converts the Metadata in the ManagedOSVersionSpec to a concrete object
type ManagedOSVersionChannel ¶
type ManagedOSVersionChannel struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagedOSVersionChannelSpec `json:"spec,omitempty"`
Status ManagedOSVersionChannelStatus `json:"status,omitempty"`
}
func (*ManagedOSVersionChannel) DeepCopy ¶
func (in *ManagedOSVersionChannel) DeepCopy() *ManagedOSVersionChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannel.
func (*ManagedOSVersionChannel) DeepCopyInto ¶
func (in *ManagedOSVersionChannel) DeepCopyInto(out *ManagedOSVersionChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedOSVersionChannel) DeepCopyObject ¶
func (in *ManagedOSVersionChannel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedOSVersionChannelList ¶
type ManagedOSVersionChannelList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ManagedOSVersionChannel `json:"items"`
}
ManagedOSVersionChannelList contains a list of ManagedOSVersionChannels.
func (*ManagedOSVersionChannelList) DeepCopy ¶
func (in *ManagedOSVersionChannelList) DeepCopy() *ManagedOSVersionChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannelList.
func (*ManagedOSVersionChannelList) DeepCopyInto ¶
func (in *ManagedOSVersionChannelList) DeepCopyInto(out *ManagedOSVersionChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedOSVersionChannelList) DeepCopyObject ¶
func (in *ManagedOSVersionChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedOSVersionChannelSpec ¶
type ManagedOSVersionChannelSpec struct {
// +optional
Type string `json:"type,omitempty"`
// +optional
// +kubebuilder:default:="1h"
SyncInterval string `json:"syncInterval,omitempty"`
// DeleteNoLongerInSyncVersions automatically deletes
// all no-longer-in-sync ManagedOSVersions that were created by this channel.
// +optional
// +kubebuilder:default:=false
DeleteNoLongerInSyncVersions bool `json:"deleteNoLongerInSyncVersions,omitempty"`
// +optional
// +kubebuilder:default:=true
Enabled bool `json:"enabled"`
// Registry defines a common registry to be prepended to the 'uri' or 'upgradeImage'
// of each extracted ManagedOSVersion resource.
// +optional
Registry string `json:"registry,omitempty"`
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
// +optional
Options map[string]runtime.RawExtension `json:"options,omitempty"`
// +optional
UpgradeContainer *upgradev1.ContainerSpec `json:"upgradeContainer,omitempty"`
}
func (*ManagedOSVersionChannelSpec) DeepCopy ¶
func (in *ManagedOSVersionChannelSpec) DeepCopy() *ManagedOSVersionChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannelSpec.
func (*ManagedOSVersionChannelSpec) DeepCopyInto ¶
func (in *ManagedOSVersionChannelSpec) DeepCopyInto(out *ManagedOSVersionChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedOSVersionChannelStatus ¶
type ManagedOSVersionChannelStatus struct {
// Conditions describe the state of the managed OS version object.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
// LastSyncedTime is the timestamp of the last synchronization
// +optional
LastSyncedTime *metav1.Time `json:"lastSyncedTime,omitempty"`
// FailedSynchronizationAttempts counts the number of consecutive synchronization failures
// +optional
FailedSynchronizationAttempts int `json:"failedSynchronizationAttempts,omitempty"`
// SyncedGeneration tracks the spec generation of the last synchronization
// +optional
SyncedGeneration int64 `json:"syncedGeneration,omitempty"`
}
func (*ManagedOSVersionChannelStatus) DeepCopy ¶
func (in *ManagedOSVersionChannelStatus) DeepCopy() *ManagedOSVersionChannelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannelStatus.
func (*ManagedOSVersionChannelStatus) DeepCopyInto ¶
func (in *ManagedOSVersionChannelStatus) DeepCopyInto(out *ManagedOSVersionChannelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedOSVersionList ¶
type ManagedOSVersionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ManagedOSVersion `json:"items"`
}
ManagedOSVersionList contains a list of ManagedOSVersions.
func (*ManagedOSVersionList) DeepCopy ¶
func (in *ManagedOSVersionList) DeepCopy() *ManagedOSVersionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionList.
func (*ManagedOSVersionList) DeepCopyInto ¶
func (in *ManagedOSVersionList) DeepCopyInto(out *ManagedOSVersionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedOSVersionList) DeepCopyObject ¶
func (in *ManagedOSVersionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedOSVersionSpec ¶
type ManagedOSVersionSpec struct {
// +optional
Version string `json:"version,omitempty"`
// +optional
Type string `json:"type,omitempty"`
// +optional
MinVersion string `json:"minVersion,omitempty"`
// +optional
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
// +optional
Metadata map[string]runtime.RawExtension `json:"metadata,omitempty"`
// +optional
UpgradeContainer *upgradev1.ContainerSpec `json:"upgradeContainer,omitempty"`
}
func (*ManagedOSVersionSpec) DeepCopy ¶
func (in *ManagedOSVersionSpec) DeepCopy() *ManagedOSVersionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionSpec.
func (*ManagedOSVersionSpec) DeepCopyInto ¶
func (in *ManagedOSVersionSpec) DeepCopyInto(out *ManagedOSVersionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedOSVersionStatus ¶
type ManagedOSVersionStatus struct{}
func (*ManagedOSVersionStatus) DeepCopy ¶
func (in *ManagedOSVersionStatus) DeepCopy() *ManagedOSVersionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionStatus.
func (*ManagedOSVersionStatus) DeepCopyInto ¶
func (in *ManagedOSVersionStatus) DeepCopyInto(out *ManagedOSVersionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Metadata ¶
type Metadata struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MetadataSpec `json:"spec,omitempty"`
Status MetadataStatus `json:"status,omitempty"`
}
func (*Metadata) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.
func (*Metadata) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Metadata) DeepCopyObject ¶ added in v1.6.2
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetadataList ¶ added in v1.6.2
type MetadataList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Metadata `json:"items"`
}
func (*MetadataList) DeepCopy ¶ added in v1.6.2
func (in *MetadataList) DeepCopy() *MetadataList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataList.
func (*MetadataList) DeepCopyInto ¶ added in v1.6.2
func (in *MetadataList) DeepCopyInto(out *MetadataList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetadataList) DeepCopyObject ¶ added in v1.6.2
func (in *MetadataList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetadataSpec ¶ added in v1.6.2
type MetadataSpec struct {
Annotations map[string]string `json:"annotations,omitempty"`
AppVersion string `json:"appVersion,omitempty"`
}
func (*MetadataSpec) DeepCopy ¶ added in v1.6.2
func (in *MetadataSpec) DeepCopy() *MetadataSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataSpec.
func (*MetadataSpec) DeepCopyInto ¶ added in v1.6.2
func (in *MetadataSpec) DeepCopyInto(out *MetadataSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetadataStatus ¶ added in v1.6.2
type MetadataStatus struct{}
func (*MetadataStatus) DeepCopy ¶ added in v1.6.2
func (in *MetadataStatus) DeepCopy() *MetadataStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataStatus.
func (*MetadataStatus) DeepCopyInto ¶ added in v1.6.2
func (in *MetadataStatus) DeepCopyInto(out *MetadataStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkConfig ¶ added in v1.7.0
type NetworkConfig struct {
// Configurator
// +kubebuilder:validation:Enum=nmc;nmstate;nmconnections
// +kubebuilder:default:=nmc
Configurator string `json:"configurator,omitempty" yaml:"configurator,omitempty"`
// IPAddresses contains a map of claimed IPAddresses
IPAddresses map[string]string `json:"ipAddresses,omitempty" yaml:"ipAddresses,omitempty"`
// Config contains the network config template (nmc, nmstate, or nmconnections formats)
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
// +optional
Config map[string]runtime.RawExtension `json:"config,omitempty" yaml:"config,omitempty"`
}
NetworkConfig contains a map of claimed IPAddresses and a schemaless network config template. This NetworkConfig is a digested NetworkTemplate, the MachineInventory's NetworkConfigReady condition highlight that this config is ready to be consumed, this means all needed IPAddressClaims for this machine have been created and the IPAM provider served real IPAddresses that can be applied to the machine.
Note that the Config is the same as in NetworkTemplate, so actually a template, not a fully digested config. An alternative could be to simplify this object to contain final connections where the variable substitution already took place. Right now we send both Config template and real IPAddresses so the consumer (elemental-register) can do the substitution itself.
func (*NetworkConfig) DeepCopy ¶ added in v1.7.0
func (in *NetworkConfig) DeepCopy() *NetworkConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkConfig.
func (*NetworkConfig) DeepCopyInto ¶ added in v1.7.0
func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkTemplate ¶ added in v1.7.0
type NetworkTemplate struct {
// Configurator
// +kubebuilder:validation:Enum=nmc;nmstate;nmconnections
// +kubebuilder:default:=nmc
Configurator string `json:"configurator,omitempty" yaml:"configurator,omitempty"`
// IPAddresses contains a map of IPPools references
IPAddresses map[string]*corev1.TypedLocalObjectReference `json:"ipAddresses,omitempty" yaml:"ipAddresses,omitempty"`
// Config contains the network config template (nmc, nmstate, or nmconnections formats)
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
// +optional
Config map[string]runtime.RawExtension `json:"config,omitempty" yaml:"config,omitempty"`
}
NetworkTemplate contains a map of IPAddressPools and a schemaless network config template.
func (*NetworkTemplate) DeepCopy ¶ added in v1.7.0
func (in *NetworkTemplate) DeepCopy() *NetworkTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkTemplate.
func (*NetworkTemplate) DeepCopyInto ¶ added in v1.7.0
func (in *NetworkTemplate) DeepCopyInto(out *NetworkTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlanStatus ¶
type PlanStatus struct {
// PlanSecretRef a reference to the created plan secret.
// +optional
PlanSecretRef *corev1.ObjectReference `json:"secretRef,omitempty"`
// Checksum checksum of the created plan.
// +optional
Checksum string `json:"checksum,omitempty"`
// State reflect state of the plan that belongs to the machine inventory.
// +kubebuilder:validation:Enum=Applied;Failed
// +optional
State PlanState `json:"state,omitempty"`
}
func (*PlanStatus) DeepCopy ¶
func (in *PlanStatus) DeepCopy() *PlanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanStatus.
func (*PlanStatus) DeepCopyInto ¶
func (in *PlanStatus) DeepCopyInto(out *PlanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Registration ¶
type Registration struct {
// +optional
URL string `json:"url,omitempty" yaml:"url,omitempty" mapstructure:"url"`
// +optional
CACert string `json:"ca-cert,omitempty" yaml:"ca-cert,omitempty" mapstructure:"ca-cert"`
// +optional
EmulateTPM bool `json:"emulate-tpm,omitempty" yaml:"emulate-tpm,omitempty" mapstructure:"emulate-tpm"`
// +optional
EmulatedTPMSeed int64 `json:"emulated-tpm-seed,omitempty" yaml:"emulated-tpm-seed,omitempty" mapstructure:"emulated-tpm-seed"`
// +optional
NoSMBIOS bool `json:"no-smbios,omitempty" yaml:"no-smbios,omitempty" mapstructure:"no-smbios"`
// +optional
// +kubebuilder:default:=tpm
Auth string `json:"auth,omitempty" yaml:"auth,omitempty" mapstructure:"auth"`
// +optional
NoToolkit bool `json:"no-toolkit,omitempty" yaml:"no-toolkit,omitempty" mapstructure:"no-toolkit"`
}
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.
type Reset ¶ added in v1.3.1
type Reset struct {
// +optional
Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
// +optional
// +kubebuilder:default:=true
ResetPersistent bool `json:"reset-persistent,omitempty" yaml:"reset-persistent,omitempty" mapstructure:"reset-persistent"`
// +optional
// +kubebuilder:default:=true
ResetOEM bool `json:"reset-oem,omitempty" yaml:"reset-oem,omitempty" mapstructure:"reset-oem"`
// +optional
ConfigURLs []string `json:"config-urls,omitempty" yaml:"config-urls,omitempty" mapstructure:"config-urls"`
// +optional
SystemURI string `json:"system-uri,omitempty" yaml:"system-uri,omitempty" mapstructure:"system-uri"`
// +optional
Debug bool `json:"debug,omitempty" yaml:"debug,omitempty" mapstructure:"debug"`
// +optional
PowerOff bool `json:"poweroff,omitempty" yaml:"poweroff,omitempty" mapstructure:"poweroff"`
// +optional
// +kubebuilder:default:=true
Reboot bool `json:"reboot,omitempty" yaml:"reboot,omitempty" mapstructure:"reboot"`
// +optional
DisableBootEntry bool `json:"disable-boot-entry,omitempty" yaml:"disable-boot-entry,omitempty"`
}
func (*Reset) DeepCopy ¶ added in v1.3.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Reset.
func (*Reset) DeepCopyInto ¶ added in v1.3.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SeedImage ¶ added in v1.1.4
type SeedImage struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SeedImageSpec `json:"spec,omitempty"`
Status SeedImageStatus `json:"status,omitempty"`
}
func (*SeedImage) DeepCopy ¶ added in v1.1.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeedImage.
func (*SeedImage) DeepCopyInto ¶ added in v1.1.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SeedImage) DeepCopyObject ¶ added in v1.1.4
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SeedImageList ¶ added in v1.1.4
type SeedImageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SeedImage `json:"items"`
}
SeedImageList contains a list of SeedImages
func (*SeedImageList) DeepCopy ¶ added in v1.1.4
func (in *SeedImageList) DeepCopy() *SeedImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeedImageList.
func (*SeedImageList) DeepCopyInto ¶ added in v1.1.4
func (in *SeedImageList) DeepCopyInto(out *SeedImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SeedImageList) DeepCopyObject ¶ added in v1.1.4
func (in *SeedImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SeedImageSpec ¶ added in v1.1.4
type SeedImageSpec struct {
// BaseImg the base elemental image used to build the seed image.
// +optional
BaseImage string `json:"baseImage"`
// MachineRegistrationRef a reference to the related MachineRegistration.
MachineRegistrationRef *corev1.ObjectReference `json:"registrationRef"`
// BuildContainer settings for a custom container used to generate the
// downloadable image.
// +optional
BuildContainer *BuildContainer `json:"buildContainer"`
// LifetimeMinutes the time at which the built seed image will be cleaned up.
// If when the lifetime elapses the built image is being downloaded, the active
// download will be completed before removing the built image.
// Default is 60 minutes, set to 0 to disable.
// +kubebuilder:default:=60
// +optional
LifetimeMinutes int32 `json:"cleanupAfterMinutes"`
// RetriggerBuild triggers to build again a cleaned up seed image.
// +optional
RetriggerBuild bool `json:"retriggerBuild"`
// Size specifies the size of the volume used to store the image.
// Defaults to 6Gi
// +kubebuilder:default:=6442450944
// +optional
Size resource.Quantity `json:"size"`
// Type specifies the type of seed image to built.
// Valid values are iso|raw
// Defaults to "iso"
// +kubebuilder:validation:Enum=iso;raw
// +kubebuilder:default:=iso
Type SeedImageType `json:"type"`
// Platform specifies the target platform for the built image. Example: linux/amd64
// +kubebuilder:example=linux/amd64
// +kubebuilder:validation:Pattern=`^$|^\S+\/\S+$`
// +kubebuilder:validation:Type=string
// +optional
TargetPlatform Platform `json:"targetPlatform"`
// CloudConfig contains cloud-config data to be put in the generated iso.
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:XPreserveUnknownFields
// +optional
CloudConfig map[string]runtime.RawExtension `json:"cloud-config,omitempty" yaml:"cloud-config,omitempty"`
}
func (*SeedImageSpec) DeepCopy ¶ added in v1.1.4
func (in *SeedImageSpec) DeepCopy() *SeedImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeedImageSpec.
func (*SeedImageSpec) DeepCopyInto ¶ added in v1.1.4
func (in *SeedImageSpec) DeepCopyInto(out *SeedImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SeedImageState ¶ added in v1.1.4
type SeedImageState string
const ( SeedImageInit SeedImageState = "Initialized" SeedImageStarted SeedImageState = "Started" SeedImageCompleted SeedImageState = "Completed" SeedImageFailed SeedImageState = "Failed" SeedImageNotStarted SeedImageState = "NotStarted" )
type SeedImageStatus ¶ added in v1.1.4
type SeedImageStatus struct {
// Conditions describe the state of the machine registration object.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
// DownloadToken a token to identify the seed image to download.
// +optional
DownloadToken string `json:"downloadToken,omitempty"`
// DownloadURL the URL from which the SeedImage can be downloaded once built.
// +optional
DownloadURL string `json:"downloadURL,omitempty"`
// ChecksumURL the URL from which the SeedImage checksum can be downloaded once the image is built.
// +optional
ChecksumURL string `json:"checksumURL,omitempty"`
// State reflect the state of the seed image build process.
// +kubebuilder:validation:Enum=Initialized;Started;Completed;Failed;NotStarted
// +optional
State SeedImageState `json:"state,omitempty"`
}
func (*SeedImageStatus) DeepCopy ¶ added in v1.1.4
func (in *SeedImageStatus) DeepCopy() *SeedImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeedImageStatus.
func (*SeedImageStatus) DeepCopyInto ¶ added in v1.1.4
func (in *SeedImageStatus) DeepCopyInto(out *SeedImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SeedImageType ¶ added in v1.5.0
type SeedImageType string
const ( TypeIso SeedImageType = "iso" TypeRaw SeedImageType = "raw" )
type SnapshotterConfig ¶ added in v1.5.0
type SnapshotterConfig struct {
// Type sets the snapshotter type for a new installation, available options are 'loopdevice' and 'btrfs'
// +optional
// +kubebuilder:default:=loopdevice
Type string `json:"type,omitempty" yaml:"type,omitempty"`
// MaxSnaps sets the maximum amount of snapshots to keep
// +optional
// +kubebuilder:default:=2
// +kubebuilder:validation:Minimum:=2
MaxSnaps int `json:"maxSnaps,omitempty" yaml:"maxSnaps,omitempty"`
}
func (*SnapshotterConfig) DeepCopy ¶ added in v1.5.0
func (in *SnapshotterConfig) DeepCopy() *SnapshotterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotterConfig.
func (*SnapshotterConfig) DeepCopyInto ¶ added in v1.5.0
func (in *SnapshotterConfig) DeepCopyInto(out *SnapshotterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SystemAgent ¶
type SystemAgent struct {
// +optional
StrictTLSMode bool `json:"strictTLSMode,omitempty" yaml:"strictTLSMode,omitempty"`
// +optional
URL string `json:"url,omitempty" yaml:"url,omitempty"`
// +optional
Token string `json:"token,omitempty" yaml:"token,omitempty"`
// +optional
SecretName string `json:"secret-name,omitempty" yaml:"secret-name,omitempty"`
// +optional
SecretNamespace string `json:"secret-namespace,omitempty" yaml:"secret-namespace,omitempty"`
}
func (*SystemAgent) DeepCopy ¶
func (in *SystemAgent) DeepCopy() *SystemAgent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SystemAgent.
func (*SystemAgent) DeepCopyInto ¶
func (in *SystemAgent) DeepCopyInto(out *SystemAgent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- common_consts.go
- condition_consts.go
- groupversion_info.go
- machineinventory_types.go
- machineregistration_types.go
- machineselector_types.go
- machineselectortemplate_types.go
- managedosimage_types.go
- managedosversion_types.go
- managedosversionchannel_types.go
- metadata_type.go
- seedimage_type.go
- types.go
- zz_generated.deepcopy.go