v1alpha1

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the virtualkubelet v1alpha1 API group. +kubebuilder:object:generate=true +groupName=virtualkubelet.liqo.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "virtualkubelet.liqo.io", Version: "v1alpha1"}

	// NamespaceMapResource is the resource name used to register the NamespaceMap CRD.
	NamespaceMapResource = "namespacemaps"

	// NamespaceMapGroupResource is group resource used to register these objects.
	NamespaceMapGroupResource = schema.GroupResource{Group: SchemeGroupVersion.Group, Resource: NamespaceMapResource}

	// NamespaceMapGroupVersionResource is groupResourceVersion used to register these objects.
	NamespaceMapGroupVersionResource = SchemeGroupVersion.WithResource(NamespaceMapResource)

	// VirtualNodeKind is the kind name used to register the VirtualNode CRD.
	VirtualNodeKind = "VirtualNode"

	// VirtualNodeResource is the resource name used to register the VirtualNode CRD.
	VirtualNodeResource = "virtualnodes"

	// VirtualNodeGroupResource is group resource used to register these objects.
	VirtualNodeGroupResource = schema.GroupResource{Group: SchemeGroupVersion.Group, Resource: VirtualNodeResource}

	// VirtualNodeGroupVersionResource is groupResourceVersion used to register these objects.
	VirtualNodeGroupVersionResource = SchemeGroupVersion.WithResource(VirtualNodeResource)

	// ShadowPodResource is the resource name used to register the ShadowPod CRD.
	ShadowPodResource = "shadowpods"

	// ShadowPodGroupResource is group resource used to register these objects.
	ShadowPodGroupResource = schema.GroupResource{Group: SchemeGroupVersion.Group, Resource: ShadowPodResource}

	// ShadowPodGroupVersionResource is groupResourceVersion used to register these objects.
	ShadowPodGroupVersionResource = SchemeGroupVersion.WithResource(ShadowPodResource)

	// ShadowEndpointSliceResource is the resource name used to register the ShadowEndpointSlice CRD.
	ShadowEndpointSliceResource = "shadowendpointslices"

	// ShadowEndpointSliceGroupResource is group resource used to register these objects.
	ShadowEndpointSliceGroupResource = schema.GroupResource{Group: SchemeGroupVersion.Group, Resource: ShadowEndpointSliceResource}

	// ShadowEndpointSliceGroupVersionResource is groupResourceVersion used to register these objects.
	ShadowEndpointSliceGroupVersionResource = SchemeGroupVersion.WithResource(ShadowEndpointSliceResource)

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

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type Affinity added in v0.9.0

type Affinity struct {
	NodeAffinity *corev1.NodeAffinity `json:"nodeAffinity,omitempty"`
}

Affinity contains the affinity and anti-affinity rules for the virtual node.

func (*Affinity) DeepCopy added in v0.9.0

func (in *Affinity) DeepCopy() *Affinity

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

func (*Affinity) DeepCopyInto added in v0.9.0

func (in *Affinity) DeepCopyInto(out *Affinity)

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

type DeploymentTemplate added in v0.9.0

type DeploymentTemplate struct {
	// Metadata contains the metadata of the virtual node.
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec contains the deployment spec of the virtual node.
	Spec appsv1.DeploymentSpec `json:"spec,omitempty"`
}

DeploymentTemplate contains the deployment template of the virtual node.

func (*DeploymentTemplate) DeepCopy added in v0.9.0

func (in *DeploymentTemplate) DeepCopy() *DeploymentTemplate

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

func (*DeploymentTemplate) DeepCopyInto added in v0.9.0

func (in *DeploymentTemplate) DeepCopyInto(out *DeploymentTemplate)

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

type EndpointSliceTemplate added in v0.8.0

type EndpointSliceTemplate struct {
	Endpoints   []discoveryv1.Endpoint     `json:"endpoints,omitempty"`
	Ports       []discoveryv1.EndpointPort `json:"ports,omitempty"`
	AddressType discoveryv1.AddressType    `json:"addressType,omitempty"`
}

EndpointSliceTemplate defines the desired state of the EndpointSlice.

func (*EndpointSliceTemplate) DeepCopy added in v0.8.0

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

func (*EndpointSliceTemplate) DeepCopyInto added in v0.8.0

func (in *EndpointSliceTemplate) DeepCopyInto(out *EndpointSliceTemplate)

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

type MappingPhase

type MappingPhase string

MappingPhase indicates the status of the remote namespace.

const (
	// MappingAccepted indicates that a remote namespace is successfully created.
	MappingAccepted MappingPhase = "Accepted"
	// MappingCreationLoopBackOff indicates that at the moment is impossible to create a remote namespace.
	MappingCreationLoopBackOff MappingPhase = "CreationLoopBackOff"
	// MappingTerminating means remote namespace is undergoing graceful termination.
	MappingTerminating MappingPhase = "Terminating"
)

type NamespaceMap

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

	Spec   NamespaceMapSpec   `json:"spec,omitempty"`
	Status NamespaceMapStatus `json:"status,omitempty"`
}

NamespaceMap is the Schema for the namespacemaps API. +kubebuilder:printcolumn:name="Local",type=string,JSONPath=`.metadata.labels.liqo\.io/replication` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*NamespaceMap) DeepCopy

func (in *NamespaceMap) DeepCopy() *NamespaceMap

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

func (*NamespaceMap) DeepCopyInto

func (in *NamespaceMap) DeepCopyInto(out *NamespaceMap)

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

func (*NamespaceMap) DeepCopyObject

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

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

type NamespaceMapList

type NamespaceMapList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NamespaceMap `json:"items"`
}

NamespaceMapList contains a list of NamespaceMap.

func (*NamespaceMapList) DeepCopy

func (in *NamespaceMapList) DeepCopy() *NamespaceMapList

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

func (*NamespaceMapList) DeepCopyInto

func (in *NamespaceMapList) DeepCopyInto(out *NamespaceMapList)

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

func (*NamespaceMapList) DeepCopyObject

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

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

type NamespaceMapSpec

type NamespaceMapSpec struct {

	// DesiredMapping is filled by NamespaceController when a user requires to offload a remote namespace, every entry
	// of the map represents the localNamespaceName[key]-remoteNamespaceName[value] association. When a new entry is
	// created the NamespaceMap Controller tries to create the associated remote namespace.
	DesiredMapping map[string]string `json:"desiredMapping,omitempty"`
}

NamespaceMapSpec defines the desired state of NamespaceMap.

func (*NamespaceMapSpec) DeepCopy

func (in *NamespaceMapSpec) DeepCopy() *NamespaceMapSpec

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

func (*NamespaceMapSpec) DeepCopyInto

func (in *NamespaceMapSpec) DeepCopyInto(out *NamespaceMapSpec)

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

type NamespaceMapStatus

type NamespaceMapStatus struct {

	// CurrentMapping is filled by NamespaceMap Controller, when a new remote namespace's creation is requested. The key
	// is the local namespace name, while the value is a summary of new remote namespace's status.
	CurrentMapping map[string]RemoteNamespaceStatus `json:"currentMapping,omitempty"`
}

NamespaceMapStatus defines the observed state of NamespaceMap.

func (*NamespaceMapStatus) DeepCopy

func (in *NamespaceMapStatus) DeepCopy() *NamespaceMapStatus

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

func (*NamespaceMapStatus) DeepCopyInto

func (in *NamespaceMapStatus) DeepCopyInto(out *NamespaceMapStatus)

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

type OffloadingPatch added in v0.9.0

type OffloadingPatch struct {
	// NodeSelector contains the node selector to target the remote cluster.
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// Tolerations contains the tolerations to target the remote cluster.
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// Affinity contains the affinity and anti-affinity rules to target the remote cluster.
	Affinities *Affinity `json:"affinities,omitempty"`
}

OffloadingPatch contains the information to patch the virtual node.

func (*OffloadingPatch) DeepCopy added in v0.9.0

func (in *OffloadingPatch) DeepCopy() *OffloadingPatch

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

func (*OffloadingPatch) DeepCopyInto added in v0.9.0

func (in *OffloadingPatch) DeepCopyInto(out *OffloadingPatch)

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

type RemoteNamespaceStatus

type RemoteNamespaceStatus struct {
	// RemoteNamespace is the name chosen by the user at creation time according to NamespaceMappingStrategy
	RemoteNamespace string `json:"remoteNamespace,omitempty"`
	// Phase is the remote Namespace's actual status (Accepted,Refused).
	// +kubebuilder:validation:Enum="Accepted";"CreationLoopBackOff";"Terminating"
	Phase MappingPhase `json:"phase,omitempty"`
}

RemoteNamespaceStatus contains some information about remote namespace status.

func (*RemoteNamespaceStatus) DeepCopy

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

func (*RemoteNamespaceStatus) DeepCopyInto

func (in *RemoteNamespaceStatus) DeepCopyInto(out *RemoteNamespaceStatus)

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

type ShadowEndpointSlice added in v0.8.0

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

	Spec ShadowEndpointSliceSpec `json:"spec,omitempty"`
}

ShadowEndpointSlice is the Schema for the ShadowEndpointSlices API.

func (*ShadowEndpointSlice) DeepCopy added in v0.8.0

func (in *ShadowEndpointSlice) DeepCopy() *ShadowEndpointSlice

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

func (*ShadowEndpointSlice) DeepCopyInto added in v0.8.0

func (in *ShadowEndpointSlice) DeepCopyInto(out *ShadowEndpointSlice)

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

func (*ShadowEndpointSlice) DeepCopyObject added in v0.8.0

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

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

type ShadowEndpointSliceList added in v0.8.0

type ShadowEndpointSliceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ShadowEndpointSlice `json:"items"`
}

ShadowEndpointSliceList contains a list of ShadowEndpointSlice.

func (*ShadowEndpointSliceList) DeepCopy added in v0.8.0

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

func (*ShadowEndpointSliceList) DeepCopyInto added in v0.8.0

func (in *ShadowEndpointSliceList) DeepCopyInto(out *ShadowEndpointSliceList)

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

func (*ShadowEndpointSliceList) DeepCopyObject added in v0.8.0

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

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

type ShadowEndpointSliceSpec added in v0.8.0

type ShadowEndpointSliceSpec struct {
	Template EndpointSliceTemplate `json:"template,omitempty"`
}

ShadowEndpointSliceSpec defines the desired state of ShadowEndpointSlice.

func (*ShadowEndpointSliceSpec) DeepCopy added in v0.8.0

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

func (*ShadowEndpointSliceSpec) DeepCopyInto added in v0.8.0

func (in *ShadowEndpointSliceSpec) DeepCopyInto(out *ShadowEndpointSliceSpec)

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

type ShadowPod

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

	Spec   ShadowPodSpec   `json:"spec,omitempty"`
	Status ShadowPodStatus `json:"status,omitempty"`
}

ShadowPod is the Schema for the Shadowpods API. +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*ShadowPod) DeepCopy

func (in *ShadowPod) DeepCopy() *ShadowPod

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

func (*ShadowPod) DeepCopyInto

func (in *ShadowPod) DeepCopyInto(out *ShadowPod)

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

func (*ShadowPod) DeepCopyObject

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

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

type ShadowPodList

type ShadowPodList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ShadowPod `json:"items"`
}

ShadowPodList contains a list of ShadowPod.

func (*ShadowPodList) DeepCopy

func (in *ShadowPodList) DeepCopy() *ShadowPodList

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

func (*ShadowPodList) DeepCopyInto

func (in *ShadowPodList) DeepCopyInto(out *ShadowPodList)

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

func (*ShadowPodList) DeepCopyObject

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

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

type ShadowPodSpec

type ShadowPodSpec struct {
	Pod corev1.PodSpec `json:"pod,omitempty"`
}

ShadowPodSpec defines the desired state of ShadowPod.

func (*ShadowPodSpec) DeepCopy

func (in *ShadowPodSpec) DeepCopy() *ShadowPodSpec

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

func (*ShadowPodSpec) DeepCopyInto

func (in *ShadowPodSpec) DeepCopyInto(out *ShadowPodSpec)

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

type ShadowPodStatus added in v0.8.2

type ShadowPodStatus struct {
	// Phase is the status of this ShadowPod.
	// When the pod is created it is checked by the operator, which sets this field same as pod status.
	// +kubebuilder:validation:Enum="Pending";"Running";"Succeeded";"Failed";"Unknown"
	// +kubebuilder:default="Unknown"
	Phase corev1.PodPhase `json:"phase"`
}

ShadowPodStatus defines the observed state of ShadowPod.

func (*ShadowPodStatus) DeepCopy added in v0.8.2

func (in *ShadowPodStatus) DeepCopy() *ShadowPodStatus

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

func (*ShadowPodStatus) DeepCopyInto added in v0.8.2

func (in *ShadowPodStatus) DeepCopyInto(out *ShadowPodStatus)

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

type VirtualNode added in v0.9.0

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

	Spec   VirtualNodeSpec   `json:"spec,omitempty"`
	Status VirtualNodeStatus `json:"status,omitempty"`
}

VirtualNode is the Schema for the VirtualNodes API. +kubebuilder:printcolumn:name="Cluster Name",type=string,JSONPath=`.spec.clusterIdentity.clusterName` +kubebuilder:printcolumn:name="Create Node",type=boolean,JSONPath=`.spec.createNode` +kubebuilder:printcolumn:name="Node",type=string,JSONPath=`.status.conditions[?(@.type=="Node")].status`,priority=1 +kubebuilder:printcolumn:name="VirtualKubelet",type=string,JSONPath=`.status.conditions[?(@.type=="VirtualKubelet")].status`,priority=1 +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*VirtualNode) DeepCopy added in v0.9.0

func (in *VirtualNode) DeepCopy() *VirtualNode

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

func (*VirtualNode) DeepCopyInto added in v0.9.0

func (in *VirtualNode) DeepCopyInto(out *VirtualNode)

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

func (*VirtualNode) DeepCopyObject added in v0.9.0

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

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

type VirtualNodeCondition added in v0.9.0

type VirtualNodeCondition struct {
	// Type of the VirtualNode condition.
	// +kubebuilder:validation:Enum="VirtualKubelet";"Node"
	Type VirtualNodeConditionType `json:"type"`
	// Status of the condition.
	// +kubebuilder:validation:Enum="None";"Running";"Creating";"Draining";"Deleting"
	// +kubebuilder:default="None"
	Status VirtualNodeConditionStatusType `json:"status"`
	// LastTransitionTime -> timestamp for when the condition last transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Reason -> Machine-readable, UpperCamelCase text indicating the reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Message -> Human-readable message indicating details about the last status transition.
	Message string `json:"message,omitempty"`
}

VirtualNodeCondition contains some information about remote namespace status.

func (*VirtualNodeCondition) DeepCopy added in v0.9.0

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

func (*VirtualNodeCondition) DeepCopyInto added in v0.9.0

func (in *VirtualNodeCondition) DeepCopyInto(out *VirtualNodeCondition)

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

type VirtualNodeConditionStatusType added in v0.9.0

type VirtualNodeConditionStatusType string

VirtualNodeConditionStatusType represents different statuses that a condition could assume.

const (
	// NoneConditionStatusType represents the absence of a condition.
	NoneConditionStatusType VirtualNodeConditionStatusType = "None"
	// RunningConditionStatusType represents the condition is in running state.
	RunningConditionStatusType VirtualNodeConditionStatusType = "Running"
	// CreatingConditionStatusType represents the condition is in creating state.
	CreatingConditionStatusType VirtualNodeConditionStatusType = "Creating"
	// DrainingConditionStatusType represents the condition is in draining state.
	DrainingConditionStatusType VirtualNodeConditionStatusType = "Draining"
	// DeletingConditionStatusType represents the condition is in deleting state.
	DeletingConditionStatusType VirtualNodeConditionStatusType = "Deleting"
)

type VirtualNodeConditionType added in v0.9.0

type VirtualNodeConditionType string

VirtualNodeConditionType represents different conditions that a virtualNode could assume.

const (
	// VirtualKubeletConditionType informs users about the VirtualKubelet status.
	VirtualKubeletConditionType VirtualNodeConditionType = "VirtualKubelet"
	// NodeConditionType informs users about the Node status.
	NodeConditionType VirtualNodeConditionType = "Node"
)

type VirtualNodeList added in v0.9.0

type VirtualNodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualNode `json:"items"`
}

VirtualNodeList contains a list of VirtualNode.

func (*VirtualNodeList) DeepCopy added in v0.9.0

func (in *VirtualNodeList) DeepCopy() *VirtualNodeList

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

func (*VirtualNodeList) DeepCopyInto added in v0.9.0

func (in *VirtualNodeList) DeepCopyInto(out *VirtualNodeList)

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

func (*VirtualNodeList) DeepCopyObject added in v0.9.0

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

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

type VirtualNodeSpec added in v0.9.0

type VirtualNodeSpec struct {
	// ClusterIdentity contains the identity of the remote cluster targeted by the created virtualKubelet.
	ClusterIdentity *discoveryv1alpha1.ClusterIdentity `json:"clusterIdentity,omitempty"`
	// Template contains the deployment of the created virtualKubelet.
	// +optional
	Template *DeploymentTemplate `json:"template,omitempty"`
	// OffloadingPatch contains the information to target a groups of node on the remote cluster.
	OffloadingPatch *OffloadingPatch `json:"offloadingPatch,omitempty"`
	// CreateNode indicates if a node to target the remote cluster (and schedule on it) has to be created.
	// +kubebuilder:default:=true
	CreateNode *bool `json:"createNode,omitempty"`
	// KubeconfigSecretRef contains the reference to the secret containing the kubeconfig to access the remote cluster.
	KubeconfigSecretRef *corev1.LocalObjectReference `json:"kubeconfigSecretRef,omitempty"`
	// Images is the list of the images already stored in the cluster.
	Images []corev1.ContainerImage `json:"images,omitempty"`
	// ResourceQuota contains the quantity of resources assigned to the VirtualNode.
	ResourceQuota corev1.ResourceQuotaSpec `json:"resourceQuota,omitempty"`
	// Labels contains the labels to be added to the virtual node.
	Labels map[string]string `json:"labels,omitempty"`
	// StorageClasses contains the list of the storage classes offered by the cluster.
	StorageClasses []sharingv1alpha1.StorageType `json:"storageClasses,omitempty"`
}

VirtualNodeSpec defines the desired state of VirtualNode.

func (*VirtualNodeSpec) DeepCopy added in v0.9.0

func (in *VirtualNodeSpec) DeepCopy() *VirtualNodeSpec

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

func (*VirtualNodeSpec) DeepCopyInto added in v0.9.0

func (in *VirtualNodeSpec) DeepCopyInto(out *VirtualNodeSpec)

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

type VirtualNodeStatus added in v0.9.0

type VirtualNodeStatus struct {
	Conditions []VirtualNodeCondition `json:"conditions,omitempty"`
}

VirtualNodeStatus contains some information about remote namespace status.

func (*VirtualNodeStatus) DeepCopy added in v0.9.0

func (in *VirtualNodeStatus) DeepCopy() *VirtualNodeStatus

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

func (*VirtualNodeStatus) DeepCopyInto added in v0.9.0

func (in *VirtualNodeStatus) DeepCopyInto(out *VirtualNodeStatus)

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