v1alpha1

package
v0.0.0-...-9022789 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionMessageUpgradeStarted   = "started kubelet upgrade"
	ConditionMessageUpgradeCompleted = "completed kubelet upgrade"

	ConditionStatusStarted   = "started"
	ConditionStatusCompleted = "completed"
	ConditionStatusFailed    = "failed"

	ConditionTypeUpgradeStarted   = "UpgradeStarted"
	ConditionTypeUpgradeCompleted = "UpgradeCompleted"

	UpgradeFailurePolicyStrict = "strict"
	UpgradeFailurePolicyIgnore = "ignore"

	UpgradeStrategyRetain  = "retain"
	UpgradeStrategyReplace = "replace"
)

Variables

View Source
var (
	// SchemeGroupVersion is the grop version used to reigister objects of this
	// API.
	SchemeGroupVersion = schema.GroupVersion{
		Group:   group.GroupName,
		Version: "v1alpha1",
	}

	// AddToScheme can be used to register the known types of this API with a
	// scheme
	AddToScheme = schemeBuilder.AddToScheme
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a qualified GroupResource.

Types

type KubeletUpgrade

type KubeletUpgrade struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KubeletUpgradeSpec   `json:"spec"`
	Status KubeletUpgradeStatus `json:"status"`
}

KubeletUpgrade defines configuration that manages the kubelet upgrade process.

func (*KubeletUpgrade) DeepCopy

func (in *KubeletUpgrade) DeepCopy() *KubeletUpgrade

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

func (*KubeletUpgrade) DeepCopyInto

func (in *KubeletUpgrade) DeepCopyInto(out *KubeletUpgrade)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeletUpgrade) DeepCopyObject

func (in *KubeletUpgrade) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (KubeletUpgrade) RecordUpgradeCompleted

func (k KubeletUpgrade) RecordUpgradeCompleted(resultErr error, now time.Time) (*KubeletUpgrade, error)

RecordUpgradeStarted makes a clone of the KubeletUpgrade and updates its status with an "upgrade completed" condition.

func (KubeletUpgrade) RecordUpgradeStarted

func (k KubeletUpgrade) RecordUpgradeStarted(now time.Time) (*KubeletUpgrade, error)

RecordUpgradeStarted makes a clone of the KubeletUpgrade and updates its status with an "upgrade started" condition.

func (KubeletUpgrade) UpdateNextScheduledTime

func (k KubeletUpgrade) UpdateNextScheduledTime(now time.Time) *KubeletUpgrade

UpdateNextScheduledTime makes a clone of the KubeletUpgrade object and updates its next scheduled time.

type KubeletUpgradeList

type KubeletUpgradeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeletUpgrade `json:"items"`
}

KubeletUpgradeList represents a list of kubelet upgrade config objects.

func (*KubeletUpgradeList) DeepCopy

func (in *KubeletUpgradeList) DeepCopy() *KubeletUpgradeList

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

func (*KubeletUpgradeList) DeepCopyInto

func (in *KubeletUpgradeList) DeepCopyInto(out *KubeletUpgradeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeletUpgradeList) DeepCopyObject

func (in *KubeletUpgradeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeletUpgradeSpec

type KubeletUpgradeSpec struct {
	FailurePolicy        string               `json:"failurePolicy"`
	MaxUnavailable       int                  `json:"maxUnavailable"`
	Schedule             string               `json:"schedule"`
	Selector             metav1.LabelSelector `json:"selector"`
	Strategy             string               `json:"strategy"`
	TargetKubeletVersion string               `json:"targetKubeletVersion"`
}

KubeletUpgradeSpec represents the spec of the upgrade process

func (*KubeletUpgradeSpec) DeepCopy

func (in *KubeletUpgradeSpec) DeepCopy() *KubeletUpgradeSpec

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

func (*KubeletUpgradeSpec) DeepCopyInto

func (in *KubeletUpgradeSpec) DeepCopyInto(out *KubeletUpgradeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeletUpgradeStatus

type KubeletUpgradeStatus struct {
	Conditions        []UpgradeCondition `json:"conditions"`
	KubeletVersion    string             `json:"kubeletVersion"`
	NextScheduledTime metav1.Time        `json:"nextScheduledTime"`
}

KubeletUpgradeStatus represents the status of the upgrade process.

func (*KubeletUpgradeStatus) DeepCopy

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

func (*KubeletUpgradeStatus) DeepCopyInto

func (in *KubeletUpgradeStatus) DeepCopyInto(out *KubeletUpgradeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpgradeCondition

type UpgradeCondition struct {
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`
	Message            string      `json:"message"`
	Reason             string      `json:"reason"`
	Status             string      `json:"status"`
	Type               string      `json:"type"`
}

UpgradeCondition shows the observed condition of an upgrade.

func (*UpgradeCondition) DeepCopy

func (in *UpgradeCondition) DeepCopy() *UpgradeCondition

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

func (*UpgradeCondition) DeepCopyInto

func (in *UpgradeCondition) DeepCopyInto(out *UpgradeCondition)

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