utils

package
v1.21.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterApply

func ClusterApply(clientset simple.Clientset, clusterName string, allowKopsDowngrade bool) error

func ClusterExists

func ClusterExists(clientset simple.Clientset, clusterName string) (bool, error)

func ClusterInstanceGroupsNeedingUpdate

func ClusterInstanceGroupsNeedingUpdate(clientset simple.Clientset, clusterName string) ([]string, error)

func ClusterIsValid

func ClusterIsValid(clientset simple.Clientset, clusterName string) (bool, error)

func ClusterRollingUpdate

func ClusterRollingUpdate(clientset simple.Clientset, clusterName string, options RollingUpdateOptions) error

func ClusterValidate

func ClusterValidate(clientset simple.Clientset, clusterName string, options ValidateOptions) error

func GetKubeConfigBuilder

func GetKubeConfigBuilder(clientset simple.Clientset, clusterName string, admin *time.Duration, internal bool) (*kubeconfig.KubeconfigBuilder, error)

func InstanceGroupDelete

func InstanceGroupDelete(clientset simple.Clientset, clusterName string, instanceGroupName string) error

Types

type RollingUpdateOptions

type RollingUpdateOptions struct {
	// MasterInterval is the amount of time to wait after stopping a master instance
	MasterInterval *metav1.Duration
	// NodeInterval is the amount of time to wait after stopping a non-master instance
	NodeInterval *metav1.Duration
	// BastionInterval is the amount of time to wait after stopping a bastion instance
	BastionInterval *metav1.Duration
	// FailOnDrainError will fail when a drain error occurs
	FailOnDrainError bool
	// FailOnValidate will fail when a validation error occurs
	FailOnValidate bool
	// PostDrainDelay is the duration we wait after draining each node
	PostDrainDelay *metav1.Duration
	// ValidationTimeout is the maximum time to wait for the cluster to validate, once we start validation
	ValidationTimeout *metav1.Duration
	// ValidateCount is the amount of time that a cluster needs to be validated after single node update
	ValidateCount *int
	// CloudOnly perform rolling update without confirming progress with k8s
	CloudOnly bool
	// Force forces a rolling update
	Force bool
}

type ValidateOptions

type ValidateOptions struct {
	// Timeout defines the maximum time to wait until the cluster becomes valid
	Timeout *metav1.Duration
	// PollInterval defines the interval between validation attempts
	PollInterval *metav1.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL