v1beta1

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Overview

Package v1beta1 contains API Schema definitions for the ssp v1beta1 API group +kubebuilder:object:generate=true +groupName=ssp.kubevirt.io

Index

Constants

View Source
const (
	OperatorPausedAnnotation = "kubevirt.io/operator.paused"
)

Variables

View Source
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"`
}

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

func (in *SSP) DeepCopy() *SSP

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

func (*SSP) DeepCopyInto

func (in *SSP) DeepCopyInto(out *SSP)

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

func (*SSP) DeepCopyObject

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

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

func (*SSP) SetupWebhookWithManager

func (r *SSP) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*SSP) ValidateCreate

func (r *SSP) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*SSP) ValidateDelete

func (r *SSP) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*SSP) ValidateUpdate

func (r *SSP) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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

func (in *SSPList) DeepCopy() *SSPList

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

func (*SSPList) DeepCopyInto

func (in *SSPList) DeepCopyInto(out *SSPList)

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

func (*SSPList) DeepCopyObject

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

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

func (in *SSPSpec) DeepCopy() *SSPSpec

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

func (*SSPSpec) DeepCopyInto

func (in *SSPSpec) DeepCopyInto(out *SSPSpec)

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

func (in *SSPStatus) DeepCopy() *SSPStatus

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

func (*SSPStatus) DeepCopyInto

func (in *SSPStatus) DeepCopyInto(out *SSPStatus)

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.

Jump to

Keyboard shortcuts

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