v1beta2

package
v0.0.0-...-ab60f3c Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	VerificationTrue          string = "True"
	VerificationFalse         string = "False"
	VerificationStageImage    string = "Image"
	VerificationStageBuild    string = "Build"
	VerificationStageSign     string = "Sign"
	VerificationStageRequeued string = "Requeued"
	VerificationStageDone     string = "Done"
)

Variables

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

	// 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 CRBaseStatus

type CRBaseStatus struct {
	// Status of Module CR verification: true (verified), false (verification failed),
	// error (error during verification process), unknown (verification has not started yet)
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=True;False
	VerificationStatus string `json:"verificationStatus"`

	// StatusReason contains a string describing the status source.
	// +optional
	StatusReason string `json:"statusReason,omitempty"`

	// Current stage of the verification process:
	// image (image existence verification), build(build process verification)
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Image;Build;Sign;Requeued;Done
	VerificationStage string `json:"verificationStage"`

	// LastTransitionTime is the last time the CR status transitioned from one status to another.
	// This should be when the underlying status changed.  If that is not known, then using the time when the API field changed is acceptable.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	LastTransitionTime metav1.Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"`
}

func (*CRBaseStatus) DeepCopy

func (in *CRBaseStatus) DeepCopy() *CRBaseStatus

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

func (*CRBaseStatus) DeepCopyInto

func (in *CRBaseStatus) DeepCopyInto(out *CRBaseStatus)

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

type PreflightValidation

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

	Spec   PreflightValidationSpec   `json:"spec,omitempty"`
	Status PreflightValidationStatus `json:"status,omitempty"`
}

PreflightValidation initiates a preflight validations for all Modules on the current Kubernetes cluster. +kubebuilder:resource:path=preflightvalidations,scope=Cluster,shortName=pfv +operator-sdk:csv:customresourcedefinitions:displayName="Preflight Validation"

func (*PreflightValidation) DeepCopy

func (in *PreflightValidation) DeepCopy() *PreflightValidation

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

func (*PreflightValidation) DeepCopyInto

func (in *PreflightValidation) DeepCopyInto(out *PreflightValidation)

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

func (*PreflightValidation) DeepCopyObject

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

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

func (*PreflightValidation) Hub

func (p *PreflightValidation) Hub()

type PreflightValidationList

type PreflightValidationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of PreflightValidation. More info:
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
	Items []PreflightValidation `json:"items"`
}

PreflightValidationList is a list of PreflightValidation objects.

func (*PreflightValidationList) DeepCopy

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

func (*PreflightValidationList) DeepCopyInto

func (in *PreflightValidationList) DeepCopyInto(out *PreflightValidationList)

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

func (*PreflightValidationList) DeepCopyObject

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

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

type PreflightValidationModuleStatus

type PreflightValidationModuleStatus struct {
	CRBaseStatus `json:",inline"`

	// Name is the name of the Module resource.
	Name string `json:"name"`

	// Namespace is the namespace of the Module resource.
	Namespace string `json:"namespace"`
}

func (*PreflightValidationModuleStatus) DeepCopy

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

func (*PreflightValidationModuleStatus) DeepCopyInto

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

type PreflightValidationOCP

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

	Spec   PreflightValidationOCPSpec `json:"spec,omitempty"`
	Status PreflightValidationStatus  `json:"status,omitempty"`
}

PreflightValidationOCP initiates a preflight validations for all Modules on the current OCP cluster. +kubebuilder:resource:path=preflightvalidationsocp,scope=Cluster +kubebuilder:resource:path=preflightvalidationsocp,scope=Cluster,shortName=pfvo +operator-sdk:csv:customresourcedefinitions:displayName="Preflight Validation OCP"

func (*PreflightValidationOCP) DeepCopy

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

func (*PreflightValidationOCP) DeepCopyInto

func (in *PreflightValidationOCP) DeepCopyInto(out *PreflightValidationOCP)

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

func (*PreflightValidationOCP) DeepCopyObject

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

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

func (PreflightValidationOCP) Hub

func (p PreflightValidationOCP) Hub()

type PreflightValidationOCPList

type PreflightValidationOCPList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of PreflightValidation. More info:
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
	Items []PreflightValidationOCP `json:"items"`
}

PreflightValidationList is a list of PreflightValidation objects.

func (*PreflightValidationOCPList) DeepCopy

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

func (*PreflightValidationOCPList) DeepCopyInto

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

func (*PreflightValidationOCPList) DeepCopyObject

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

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

type PreflightValidationOCPSpec

type PreflightValidationOCPSpec struct {
	// releaseImage describes the OCP release image that all Modules need to be checked against.
	// +kubebuilder:validation:Required
	ReleaseImage string `json:"releaseImage"`

	// Boolean flag that determines whether the preflight should be checked with RT kernel version
	// instead of Full kernel version
	// +optional
	UseRTKernel bool `json:"useRTKernel"`

	// Boolean flag that determines whether images build during preflight must also
	// be pushed to a defined repository
	// +optional
	PushBuiltImage bool `json:"pushBuiltImage"`
}

PreflightValidationOCPSpec describes the desired state of the resource, such as the OCP release image that Module CRs need to be verified against as well as the push image flag More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status +kubebuilder:validation:Required

func (*PreflightValidationOCPSpec) DeepCopy

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

func (*PreflightValidationOCPSpec) DeepCopyInto

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

type PreflightValidationSpec

type PreflightValidationSpec struct {
	// KernelVersion describes the kernel image that all Modules need to be checked against.
	// +kubebuilder:validation:Required
	KernelVersion string `json:"kernelVersion"`

	// Boolean flag that determines whether images build during preflight must also
	// be pushed to a defined repository
	// +optional
	PushBuiltImage bool `json:"pushBuiltImage"`
}

PreflightValidationSpec describes the desired state of the resource, such as the kernel version that Module CRs need to be verified against as well as the debug configuration of the logs More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status +kubebuilder:validation:Required

func (*PreflightValidationSpec) DeepCopy

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

func (*PreflightValidationSpec) DeepCopyInto

func (in *PreflightValidationSpec) DeepCopyInto(out *PreflightValidationSpec)

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

type PreflightValidationStatus

type PreflightValidationStatus struct {
	// Modules contain observations about each Module's preflight upgradability validation
	// +listType=map
	// +listMapKey=namespace
	// +listMapKey=name
	// +optional
	Modules []PreflightValidationModuleStatus `json:"modules,omitempty"`
}

PreflightValidationStatus is the most recently observed status of the PreflightValidation. It is populated by the system and is read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*PreflightValidationStatus) DeepCopy

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

func (*PreflightValidationStatus) DeepCopyInto

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

Jump to

Keyboard shortcuts

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