Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=upgrade.cattle.io
+k8s:deepcopy-gen=package +groupName=upgrade.cattle.io
+k8s:deepcopy-gen=package +groupName=upgrade.cattle.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var (
ErrPlanUnresolvable = errors.New("cannot resolve plan: missing channel and version")
)
var ( // PlanLatestResolved indicates that the latest version as per the spec has been determined. PlanLatestResolved = condition.Cond("LatestResolved") )
var (
PlanResourceName = "plans"
)
var SchemeGroupVersion = schema.GroupVersion{Group: upgrade.GroupName, Version: "v1"}
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 ContainerSpec ¶ added in v0.2.0
type ContainerSpec struct { Image string `json:"image,omitempty"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` }
ContainerSpec is a simplified container template.
func (*ContainerSpec) DeepCopy ¶ added in v0.2.0
func (in *ContainerSpec) DeepCopy() *ContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSpec.
func (*ContainerSpec) DeepCopyInto ¶ added in v0.2.0
func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrainSpec ¶
type DrainSpec struct { Timeout *time.Duration `json:"timeout,omitempty"` GracePeriod *int32 `json:"gracePeriod,omitempty"` DeleteLocalData *bool `json:"deleteLocalData,omitempty"` IgnoreDaemonSets *bool `json:"ignoreDaemonSets,omitempty"` Force bool `json:"force,omitempty"` DisableEviction bool `json:"disableEviction,omitempty"` SkipWaitForDeleteTimeout int `json:"skipWaitForDeleteTimeout,omitempty"` }
DrainSpec encapsulates `kubectl drain` parameters minus node/pod selectors.
func (*DrainSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrainSpec.
func (*DrainSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Plan ¶
type Plan struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PlanSpec `json:"spec,omitempty"` Status PlanStatus `json:"status,omitempty"` }
Plan represents a "JobSet" of ApplyingNodes
func (*Plan) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plan.
func (*Plan) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Plan) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlanList ¶
type PlanList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Plan `json:"items"` }
PlanList is a list of Plan resources
func (*PlanList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanList.
func (*PlanList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlanList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlanSpec ¶
type PlanSpec struct { Concurrency int64 `json:"concurrency,omitempty"` NodeSelector *metav1.LabelSelector `json:"nodeSelector,omitempty"` ServiceAccountName string `json:"serviceAccountName,omitempty"` Channel string `json:"channel,omitempty"` Version string `json:"version,omitempty"` Secrets []SecretSpec `json:"secrets,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` Prepare *ContainerSpec `json:"prepare,omitempty"` Cordon bool `json:"cordon,omitempty"` Drain *DrainSpec `json:"drain,omitempty"` Upgrade *ContainerSpec `json:"upgrade,omitempty" wrangler:"required"` }
PlanSpec represents the user-configurable details of a Plan.
func (*PlanSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanSpec.
func (*PlanSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlanStatus ¶
type PlanStatus struct { Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"` LatestVersion string `json:"latestVersion,omitempty"` LatestHash string `json:"latestHash,omitempty"` Applying []string `json:"applying,omitempty"` }
PlanStatus represents the resulting state from processing Plan events.
func (*PlanStatus) DeepCopy ¶
func (in *PlanStatus) DeepCopy() *PlanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanStatus.
func (*PlanStatus) DeepCopyInto ¶
func (in *PlanStatus) DeepCopyInto(out *PlanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretSpec ¶ added in v0.2.0
SecretSpec describes a secret to be mounted for prepare/upgrade containers.
func (*SecretSpec) DeepCopy ¶ added in v0.2.0
func (in *SecretSpec) DeepCopy() *SecretSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretSpec.
func (*SecretSpec) DeepCopyInto ¶ added in v0.2.0
func (in *SecretSpec) DeepCopyInto(out *SecretSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.