Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the ssp v1beta1 API group +kubebuilder:object:generate=true +groupName=ssp.kubevirt.io
Index ¶
- Constants
- Variables
- type CommonTemplates
- type DataImportCronTemplate
- type NodeLabeller
- type SSP
- func (in *SSP) DeepCopy() *SSP
- func (in *SSP) DeepCopyInto(out *SSP)
- func (in *SSP) DeepCopyObject() runtime.Object
- func (r *SSP) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *SSP) ValidateCreate() error
- func (r *SSP) ValidateDelete() error
- func (r *SSP) ValidateUpdate(old runtime.Object) error
- type SSPList
- type SSPSpec
- type SSPStatus
- type TemplateValidator
Constants ¶
const (
GoldenImagesNSname = "kubevirt-os-images"
)
const (
OperatorPausedAnnotation = "kubevirt.io/operator.paused"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ssp.kubevirt.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 CommonTemplates ¶
type CommonTemplates struct { // Namespace is the k8s namespace where CommonTemplates should be installed //+kubebuilder:validation:MaxLength=63 //+kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ Namespace string `json:"namespace"` // DataImportCronTemplates defines a list of DataImportCrons managed by the SSP // Operator. This is intended for images used by CommonTemplates. DataImportCronTemplates []DataImportCronTemplate `json:"dataImportCronTemplates,omitempty"` }
func (*CommonTemplates) DeepCopy ¶
func (in *CommonTemplates) DeepCopy() *CommonTemplates
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonTemplates.
func (*CommonTemplates) DeepCopyInto ¶
func (in *CommonTemplates) DeepCopyInto(out *CommonTemplates)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataImportCronTemplate ¶ added in v0.13.0
type DataImportCronTemplate struct { metav1.ObjectMeta `json:"metadata,omitempty"` Spec cdiv1beta1.DataImportCronSpec `json:"spec"` }
DataImportCronTemplate defines the template type for DataImportCrons. It requires metadata.name to be specified while leaving namespace as optional.
func (DataImportCronTemplate) AsDataImportCron ¶ added in v0.13.0
func (t DataImportCronTemplate) AsDataImportCron() cdiv1beta1.DataImportCron
AsDataImportCron converts the DataImportCronTemplate to a cdiv1beta1.DataImportCron
func (*DataImportCronTemplate) DeepCopy ¶ added in v0.13.0
func (in *DataImportCronTemplate) DeepCopy() *DataImportCronTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataImportCronTemplate.
func (*DataImportCronTemplate) DeepCopyInto ¶ added in v0.13.0
func (in *DataImportCronTemplate) DeepCopyInto(out *DataImportCronTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeLabeller ¶
type NodeLabeller struct { // Placement describes the node scheduling configuration Placement *lifecycleapi.NodePlacement `json:"placement,omitempty"` }
func (*NodeLabeller) DeepCopy ¶
func (in *NodeLabeller) DeepCopy() *NodeLabeller
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeLabeller.
func (*NodeLabeller) DeepCopyInto ¶
func (in *NodeLabeller) DeepCopyInto(out *NodeLabeller)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSP ¶
type SSP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SSPSpec `json:"spec,omitempty"` Status SSPStatus `json:"status,omitempty"` }
SSP is the Schema for the ssps API
func (*SSP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSP.
func (*SSP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSP) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SSP) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*SSP) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type SSPList ¶
type SSPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SSP `json:"items"` }
SSPList contains a list of SSP
func (*SSPList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSPList.
func (*SSPList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSPList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSPSpec ¶
type SSPSpec struct { // TemplateValidator is configuration of the template validator operand TemplateValidator TemplateValidator `json:"templateValidator,omitempty"` // CommonTemplates is the configuration of the common templates operand CommonTemplates CommonTemplates `json:"commonTemplates"` // NodeLabeller is configuration of the node-labeller operand NodeLabeller NodeLabeller `json:"nodeLabeller,omitempty"` }
SSPSpec defines the desired state of SSP
func (*SSPSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSPSpec.
func (*SSPSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSPStatus ¶
type SSPStatus struct { lifecycleapi.Status `json:",inline"` // Paused is true when the operator notices paused annotation. Paused bool `json:"paused,omitempty"` // ObservedGeneration is the latest generation observed by the operator. ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
SSPStatus defines the observed state of SSP
func (*SSPStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSPStatus.
func (*SSPStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateValidator ¶
type TemplateValidator struct { // Replicas is the number of replicas of the template validator pod //+kubebuilder:validation:Minimum=0 //+kubebuilder:default=2 Replicas *int32 `json:"replicas,omitempty"` // Placement describes the node scheduling configuration Placement *lifecycleapi.NodePlacement `json:"placement,omitempty"` }
func (*TemplateValidator) DeepCopy ¶
func (in *TemplateValidator) DeepCopy() *TemplateValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateValidator.
func (*TemplateValidator) DeepCopyInto ¶
func (in *TemplateValidator) DeepCopyInto(out *TemplateValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.