Documentation ¶
Overview ¶
Package versionupgrade implements EKS cluster version upgrade tester.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Poll ¶
func Poll( ctx context.Context, stopc chan struct{}, lg *zap.Logger, eksAPI eksiface.EKSAPI, clusterName string, mngName string, requestID string, desiredUpdateStatus string, initialWait time.Duration, wait time.Duration, ) <-chan UpdateStatus
Poll periodically fetches the MNG update status until the MNG update becomes the desired state. ref. https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeUpdate.html
Types ¶
type Config ¶
type Config struct { Logger *zap.Logger Stopc chan struct{} EKSConfig *eksconfig.Config K8SClient k8s_client.EKS EKSAPI eksiface.EKSAPI }
Config defines version upgrade configuration.
type UpdateStatus ¶
UpdateStatus represents the CloudFormation status.
type Upgrader ¶
type Upgrader interface { // Upgrade starts MNG version upgrade process, and waits for its completion. // ref. https://docs.aws.amazon.com/cli/latest/reference/eks/update-nodegroup-version.html Upgrade(mngName string) error }
Upgrader defines MNG version upgrade interface.
Click to show internal directories.
Click to hide internal directories.