v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

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

View Source
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."
)

List of constants for ImageCacheMessage

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: fledged.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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       []string          `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 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

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

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 added in v0.5.0

type NodeReasonMessageList []NodeReasonMessage

func (NodeReasonMessageList) DeepCopy added in v0.5.0

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

func (NodeReasonMessageList) DeepCopyInto added in v0.5.0

func (in NodeReasonMessageList) DeepCopyInto(out *NodeReasonMessageList)

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