Documentation ¶
Overview ¶
Package v3 is the v3 version of the API. +groupName=provision.containership.io +groupGoName=ContainershipProvision
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder is used to add functions to the API dynamically SchemeBuilder runtime.SchemeBuilder // AddToScheme adds functions to the Scheme AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: provisioncontainershipio.GroupName, Version: "v3"}
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 ClusterUpgrade ¶
type ClusterUpgrade struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterUpgradeSpec `json:"spec"` }
ClusterUpgrade describes the cluster upgrade that has been requested. This is not synced from cloud
func (*ClusterUpgrade) DeepCopy ¶
func (in *ClusterUpgrade) DeepCopy() *ClusterUpgrade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUpgrade.
func (*ClusterUpgrade) DeepCopyInto ¶
func (in *ClusterUpgrade) DeepCopyInto(out *ClusterUpgrade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterUpgrade) DeepCopyObject ¶
func (in *ClusterUpgrade) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterUpgradeList ¶
type ClusterUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ClusterUpgrade `json:"items"` }
ClusterUpgradeList is a list of ClusterUpgrades.
func (*ClusterUpgradeList) DeepCopy ¶
func (in *ClusterUpgradeList) DeepCopy() *ClusterUpgradeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUpgradeList.
func (*ClusterUpgradeList) DeepCopyInto ¶
func (in *ClusterUpgradeList) DeepCopyInto(out *ClusterUpgradeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterUpgradeList) DeepCopyObject ¶
func (in *ClusterUpgradeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterUpgradeSpec ¶
type ClusterUpgradeSpec struct { ID string `json:"id"` Type UpgradeType `json:"type"` AddedAt string `json:"addedAt"` Description string `json:"description"` TargetVersion string `json:"targetVersion"` LabelSelector []LabelSelectorSpec `json:"labelSelector"` NodeTimeoutSeconds int `json:"nodeTimeoutSeconds"` Status ClusterUpgradeStatusSpec `json:"status"` }
ClusterUpgradeSpec is the spec for a Containership Cloud Cluster Upgrade.
func (*ClusterUpgradeSpec) DeepCopy ¶
func (in *ClusterUpgradeSpec) DeepCopy() *ClusterUpgradeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUpgradeSpec.
func (*ClusterUpgradeSpec) DeepCopyInto ¶
func (in *ClusterUpgradeSpec) DeepCopyInto(out *ClusterUpgradeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterUpgradeStatusSpec ¶
type ClusterUpgradeStatusSpec struct { ClusterStatus UpgradeStatus `json:"clusterStatus"` NodeStatuses map[string]UpgradeStatus `json:"nodeStatuses"` CurrentNode string `json:"currentNode"` CurrentStartTime string `json:"currentStartTime"` }
ClusterUpgradeStatusSpec is the spec for the current status / state of a Cluster Upgrade. It is never modified by Cloud.
func (*ClusterUpgradeStatusSpec) DeepCopy ¶
func (in *ClusterUpgradeStatusSpec) DeepCopy() *ClusterUpgradeStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUpgradeStatusSpec.
func (*ClusterUpgradeStatusSpec) DeepCopyInto ¶
func (in *ClusterUpgradeStatusSpec) DeepCopyInto(out *ClusterUpgradeStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LabelSelectorSpec ¶
type LabelSelectorSpec struct { Label string `json:"label"` Operator selection.Operator `json:"operator"` Value []string `json:"value"` }
LabelSelectorSpec lets a user add more filters to the nodes they want to update
func (*LabelSelectorSpec) DeepCopy ¶
func (in *LabelSelectorSpec) DeepCopy() *LabelSelectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorSpec.
func (*LabelSelectorSpec) DeepCopyInto ¶
func (in *LabelSelectorSpec) DeepCopyInto(out *LabelSelectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpgradeStatus ¶
type UpgradeStatus string
UpgradeStatus keeps track of where in the upgrade process the cluster is
const ( // UpgradeInProgress means the update process has started UpgradeInProgress UpgradeStatus = "InProgress" // UpgradeSuccess status gets set when all nodes have been updated to Target Version UpgradeSuccess UpgradeStatus = "Success" // UpgradeFailed status gets set when 1 or more nodes in upgrade if unsuccessful UpgradeFailed UpgradeStatus = "Failed" )
type UpgradeType ¶
type UpgradeType string
UpgradeType specifies the type of upgrade this CRD corresponds to
const ( // UpgradeTypeKubernetes is for upgrading Kubernetes UpgradeTypeKubernetes UpgradeType = "kubernetes" // UpgradeTypeEtcd is for upgrading etcd (not yet supported) UpgradeTypeEtcd UpgradeType = "etcd" )