Documentation
¶
Overview ¶
Package v1alpha3 is the v1alpha3 version of the API.
Index ¶
Constants ¶
const ( ImageCacheReasonImageCacheCreate = "ImageCacheCreate" ImageCacheReasonImageCacheUpdate = "ImageCacheUpdate" ImageCacheReasonImageCacheRefresh = "ImageCacheRefresh" ImageCacheReasonImageCachePurge = "ImageCachePurge" ImageCacheReasonImageCacheDelete = "ImageCacheDelete" ImageCacheReasonImagesPulledSuccessfully = "ImagesPulledSuccessfully" ImageCacheReasonImagesDeletedSuccessfully = "ImagesDeletedSuccessfully" ImageCacheReasonImagePullFailedForSomeImages = "ImagePullFailedForSomeImages" ImageCacheReasonImageDeleteFailedForSomeImages = "ImageDeleteFailedForSomeImages" ImageCacheReasonImagePullFailedOnSomeNodes = "ImagePullFailedOnSomeNodes" ImageCacheReasonImagePullStatusUnknown = "ImagePullStatusUnknown" ImageCacheReasonImagePullAborted = "ImagePullAborted" ImageCacheReasonCacheSpecValidationFailed = "CacheSpecValidationFailed" ImageCacheReasonOldImageCacheNotFound = "OldImageCacheNotFound" ImageCacheReasonNotSupportedUpdates = "NotSupportedUpdates" )
List of constants for ImageCacheReason
const ( ImageCacheMessagePullingImages = "Images are being pulled on to the nodes. Please view the status after some time" ImageCacheMessageUpdatingCache = "Image cache is being updated. Please view the status after some time" ImageCacheMessageRefreshingCache = "Image cache is being refreshed. Please view the status after some time" ImageCacheMessagePurgeCache = "Image cache is being purged. Please view the status after some time" ImageCacheMessageDeletingImages = "Images in the cache are being deleted. Please view the status after some time" ImageCacheMessageImagesPulledSuccessfully = "All requested images pulled succesfully to respective nodes" ImageCacheMessageImagesDeletedSuccessfully = "All cached images succesfully deleted from respective nodes" ImageCacheMessageImagePullFailedForSomeImages = "Image pull failed for some images. Please see \"failures\" section" ImageCacheMessageImageDeleteFailedForSomeImages = "Image deletion failed for some images. Please see \"failures\" section" ImageCacheMessageImagePullFailedOnSomeNodes = "Image pull failed on some nodes. Please see \"failures\" section" ImageCacheMessageImagePullStatusUnknown = "Unable to get the status of Image pull. Retry after some time or contact cluster administrator" ImageCacheMessageImagePullAborted = "Image cache processing aborted. Image cache will get refreshed during next refresh cycle" ImageCacheMessageOldImageCacheNotFound = "Unable to fetch the previous version of Image cache spec before update action." ImageCacheMessageNotSupportedUpdates = "The updates performed to image cache spec is not supported. Only addition or removal of images in a image list is supported." ImageCacheMessageNoImagesPulledOrDeleted = "No images were pulled or deleted because nodeSelector specified did not match any nodes" )
List of constants for ImageCacheMessage
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: kubefledged.GroupName, Version: "v1alpha3"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CacheSpecImages ¶
type CacheSpecImages struct { Images []Image `json:"images"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` }
CacheSpecImages specifies the Images to be cached
func (*CacheSpecImages) DeepCopy ¶
func (in *CacheSpecImages) DeepCopy() *CacheSpecImages
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheSpecImages.
func (*CacheSpecImages) DeepCopyInto ¶
func (in *CacheSpecImages) DeepCopyInto(out *CacheSpecImages)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
Image specifies the image to be cached
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageCache ¶
type ImageCache struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ImageCacheSpec `json:"spec"` Status ImageCacheStatus `json:"status,omitempty"` }
ImageCache is a specification for a ImageCache resource +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*ImageCache) DeepCopy ¶
func (in *ImageCache) DeepCopy() *ImageCache
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageCache.
func (*ImageCache) DeepCopyInto ¶
func (in *ImageCache) DeepCopyInto(out *ImageCache)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageCache) DeepCopyObject ¶
func (in *ImageCache) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageCacheActionStatus ¶
type ImageCacheActionStatus string
ImageCacheActionStatus defines the status of ImageCacheAction
const ( ImageCacheActionStatusProcessing ImageCacheActionStatus = "Processing" ImageCacheActionStatusSucceeded ImageCacheActionStatus = "Succeeded" ImageCacheActionStatusFailed ImageCacheActionStatus = "Failed" ImageCacheActionStatusUnknown ImageCacheActionStatus = "Unknown" ImageCacheActionStatusAborted ImageCacheActionStatus = "Aborted" ImageCacheActioneNoImagesPulledOrDeleted ImageCacheActionStatus = "NoImagesPulledOrDeleted" )
List of constants for ImageCacheActionStatus
type ImageCacheList ¶
type ImageCacheList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ImageCache `json:"items"` }
ImageCacheList is a list of ImageCache resources
func (*ImageCacheList) DeepCopy ¶
func (in *ImageCacheList) DeepCopy() *ImageCacheList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageCacheList.
func (*ImageCacheList) DeepCopyInto ¶
func (in *ImageCacheList) DeepCopyInto(out *ImageCacheList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageCacheList) DeepCopyObject ¶
func (in *ImageCacheList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageCacheSpec ¶
type ImageCacheSpec struct { CacheSpec []CacheSpecImages `json:"cacheSpec"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` }
ImageCacheSpec is the spec for a ImageCache resource
func (*ImageCacheSpec) DeepCopy ¶
func (in *ImageCacheSpec) DeepCopy() *ImageCacheSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageCacheSpec.
func (*ImageCacheSpec) DeepCopyInto ¶
func (in *ImageCacheSpec) DeepCopyInto(out *ImageCacheSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageCacheStatus ¶
type ImageCacheStatus struct { Status ImageCacheActionStatus `json:"status"` Reason string `json:"reason"` Message string `json:"message"` Failures map[string]NodeReasonMessageList `json:"failures,omitempty"` StartTime *metav1.Time `json:"startTime"` CompletionTime *metav1.Time `json:"completionTime,omitempty"` }
ImageCacheStatus is the status for a ImageCache resource
func (*ImageCacheStatus) DeepCopy ¶
func (in *ImageCacheStatus) DeepCopy() *ImageCacheStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageCacheStatus.
func (*ImageCacheStatus) DeepCopyInto ¶
func (in *ImageCacheStatus) DeepCopyInto(out *ImageCacheStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeReasonMessage ¶
type NodeReasonMessage struct { Node string `json:"node"` Reason string `json:"reason"` Message string `json:"message"` }
NodeReasonMessage has failure reason and message for a node
func (*NodeReasonMessage) DeepCopy ¶
func (in *NodeReasonMessage) DeepCopy() *NodeReasonMessage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeReasonMessage.
func (*NodeReasonMessage) DeepCopyInto ¶
func (in *NodeReasonMessage) DeepCopyInto(out *NodeReasonMessage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeReasonMessageList ¶
type NodeReasonMessageList []NodeReasonMessage
NodeReasonMessageList has list of node reason message
func (NodeReasonMessageList) DeepCopy ¶
func (in NodeReasonMessageList) DeepCopy() NodeReasonMessageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeReasonMessageList.
func (NodeReasonMessageList) DeepCopyInto ¶
func (in NodeReasonMessageList) DeepCopyInto(out *NodeReasonMessageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.