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 ¶
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) // 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) // 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 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 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 ¶
func (in *RemoteNamespaceStatus) DeepCopy() *RemoteNamespaceStatus
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 ShadowPod ¶
type ShadowPod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ShadowPodSpec `json:"spec,omitempty"` }
ShadowPod is the Schema for the Shadowpods API.
func (*ShadowPod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShadowPod.
func (*ShadowPod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ShadowPod) DeepCopyObject ¶
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 ¶
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.