Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 contains API Schema definitions for the lifecycle v1alpha1 API group +groupName=lifecycle.ironcore.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: "lifecycle.ironcore.dev", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AvailablePackageVersions ¶
type AvailablePackageVersions struct { // Name reflects the name of the firmware package // +kubebuilder:validation:Required Name string `json:"name"` // Versions reflects the list of discovered package versions available for installation. // +kubebuilder:validation:Required Versions []string `json:"versions"` }
AvailablePackageVersions defines a number of versions for concrete firmware package.
func (*AvailablePackageVersions) DeepCopy ¶
func (in *AvailablePackageVersions) DeepCopy() *AvailablePackageVersions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AvailablePackageVersions.
func (*AvailablePackageVersions) DeepCopyInto ¶
func (in *AvailablePackageVersions) DeepCopyInto(out *AvailablePackageVersions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Machine ¶
type Machine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineSpec `json:"spec,omitempty"` Status MachineStatus `json:"status,omitempty"` }
Machine is the Schema for the machines API.
func (*Machine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Machine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Machine) LastScanTime ¶
type MachineGroup ¶
type MachineGroup struct { // Name defines machine group name // +kubebuilder:validation:Optional Name string `json:"name"` // MachineSelector defines native kubernetes label selector to apply to Machine objects. // +kubebuilder:validation:Required MachineSelector metav1.LabelSelector `json:"machineSelector"` // Packages defines default firmware package versions for the group of Machine objects. // +kubebuilder:validation:Required Packages []PackageVersion `json:"packages"` }
MachineGroup defines group of Machine objects filtered by label selector and a list of firmware packages versions which should be installed by default.
func (*MachineGroup) DeepCopy ¶
func (in *MachineGroup) DeepCopy() *MachineGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineGroup.
func (*MachineGroup) DeepCopyInto ¶
func (in *MachineGroup) DeepCopyInto(out *MachineGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineList ¶
type MachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Machine `json:"items"` }
MachineList contains a list of Machine.
func (*MachineList) DeepCopy ¶
func (in *MachineList) DeepCopy() *MachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
func (*MachineList) DeepCopyInto ¶
func (in *MachineList) DeepCopyInto(out *MachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineList) DeepCopyObject ¶
func (in *MachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineSpec ¶
type MachineSpec struct { // MachineTypeRef contain reference to MachineType object. // +kubebuilder:validation:Required MachineTypeRef corev1.LocalObjectReference `json:"machineTypeRef"` // OOBMachineRef contains reference to OOB machine object. // +kubebuilder:validation:Required OOBMachineRef corev1.LocalObjectReference `json:"oobMachineRef"` // ScanPeriod defines the interval between scans. // +kubebuilder:validation:Required ScanPeriod metav1.Duration `json:"scanPeriod"` // Packages defines the list of package versions to install. // +kubebuilder:validation:Optional Packages []PackageVersion `json:"packages"` }
MachineSpec defines the desired state of Machine.
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatus ¶
type MachineStatus struct { // LastScanTime reflects the timestamp when the last scan job for installed // firmware versions was performed. // +kubebuilder:validation:Optional LastScanTime metav1.Time `json:"lastScanTime"` // LastScanResult reflects either success or failure of the last scan job. // +kubebuilder:validation:Optional LastScanResult ScanResult `json:"lastScanResult"` // InstalledPackages reflects the versions of installed firmware packages. // +kubebuilder:validation:Optional InstalledPackages []PackageVersion `json:"installedPackages"` // Message contains verbose message explaining current state // +kubebuilder:validation:Optional Message string `json:"message"` // Conditions reflects Machine conditions and their state // +kubebuilder:validation:Optional Conditions []metav1.Condition `json:"conditions"` }
MachineStatus defines the observed state of Machine.
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineType ¶
type MachineType struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineTypeSpec `json:"spec,omitempty"` Status MachineTypeStatus `json:"status,omitempty"` }
MachineType is the Schema for the machinetypes API.
func (*MachineType) DeepCopy ¶
func (in *MachineType) DeepCopy() *MachineType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineType.
func (*MachineType) DeepCopyInto ¶
func (in *MachineType) DeepCopyInto(out *MachineType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineType) DeepCopyObject ¶
func (in *MachineType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MachineType) LastScanTime ¶
func (in *MachineType) LastScanTime() time.Time
type MachineTypeList ¶
type MachineTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MachineType `json:"items"` }
MachineTypeList contains a list of MachineType.
func (*MachineTypeList) DeepCopy ¶
func (in *MachineTypeList) DeepCopy() *MachineTypeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeList.
func (*MachineTypeList) DeepCopyInto ¶
func (in *MachineTypeList) DeepCopyInto(out *MachineTypeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineTypeList) DeepCopyObject ¶
func (in *MachineTypeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineTypeSpec ¶
type MachineTypeSpec struct { // Manufacturer refers to manufacturer, e.g. Lenovo, Dell etc. // +kubebuilder:validation:Required Manufacturer string `json:"manufacturer"` // Type refers to machine type, e.g. 7z21 for Lenovo, R440 for Dell etc. // +kubebuilder:validation:Required Type string `json:"type"` // ScanPeriod defines the interval between scans. // +kubebuilder:validation:Required ScanPeriod metav1.Duration `json:"scanPeriod"` // MachineGroups defines list of MachineGroup // +kubebuilder:validation:Optional MachineGroups []MachineGroup `json:"machineGroups"` }
MachineTypeSpec defines the desired state of MachineType.
func (*MachineTypeSpec) DeepCopy ¶
func (in *MachineTypeSpec) DeepCopy() *MachineTypeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeSpec.
func (*MachineTypeSpec) DeepCopyInto ¶
func (in *MachineTypeSpec) DeepCopyInto(out *MachineTypeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineTypeStatus ¶
type MachineTypeStatus struct { // LastScanTime reflects the timestamp when the last scan of available packages was done. // +kubebuilder:validation:Optional LastScanTime metav1.Time `json:"lastScanTime"` // LastScanResult reflects the result of the last scan. // +kubebuilder:validation:Optional LastScanResult ScanResult `json:"lastScanResult"` // AvailablePackages reflects the list of AvailablePackageVersion // +kubebuilder:validation:Optional AvailablePackages []AvailablePackageVersions `json:"availablePackages"` // Message contains verbose message explaining current state // +kubebuilder:validation:Optional Message string `json:"message"` }
MachineTypeStatus defines the observed state of MachineType.
func (*MachineTypeStatus) DeepCopy ¶
func (in *MachineTypeStatus) DeepCopy() *MachineTypeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeStatus.
func (*MachineTypeStatus) DeepCopyInto ¶
func (in *MachineTypeStatus) DeepCopyInto(out *MachineTypeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackageVersion ¶
type PackageVersion struct { // Name defines the name of the firmware package. // +kubebuilder:validation:Required Name string `json:"name"` // Version defines the version of the firmware package. // +kubebuilder:validation:Required Version string `json:"version"` }
PackageVersion defines the concrete package version item.
func (*PackageVersion) DeepCopy ¶
func (in *PackageVersion) DeepCopy() *PackageVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageVersion.
func (*PackageVersion) DeepCopyInto ¶
func (in *PackageVersion) DeepCopyInto(out *PackageVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScanResult ¶
type ScanResult string
const ( Unspecified ScanResult = "" ScanFailure ScanResult = "Failure" ScanSuccess ScanResult = "Success" )
func (ScanResult) IsFailure ¶
func (in ScanResult) IsFailure() bool
func (ScanResult) IsSuccess ¶
func (in ScanResult) IsSuccess() bool