Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Single Instance Rotator #1

Merged
merged 3 commits into from
Apr 23, 2019
Merged

Single Instance Rotator #1

merged 3 commits into from
Apr 23, 2019

Conversation

complex64
Copy link
Contributor

No description provided.

@@ -21,4 +21,4 @@ fi

export KUBECONFIG=/tmp/.kube/config
awsudo -u role aws eks update-kubeconfig --name ${CLUSTER:?}
awsudo -u role rotate-eks-asg ${AUTOSCALING_GROUPS:?}
awsudo -u role rotate-eks-instance
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was not supposed to be checked in.

}
err = asgClient.DescribeAutoScalingInstancesPages(asgInput,
func(output *autoscaling.DescribeAutoScalingInstancesOutput, isLast bool) bool {
for _, instance := range output.AutoScalingInstances {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loop can go away for simple array [0] access.

@complex64 complex64 marked this pull request as ready for review April 23, 2019 13:23
@complex64 complex64 merged commit 0c48bca into master Apr 23, 2019
@complex64 complex64 deleted the rotate-instance branch April 23, 2019 13:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant