Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update authenticator name when checking its existence #117

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

qustavo
Copy link

@qustavo qustavo commented Jul 12, 2018

Also added some cosmetic changes:
Moved the function from kubectl.go to utils.go given that the binary
checking is not related to kubectl
And update the function name from CheckHeptioAuthenticatorAWS to a more
generic one.

Closes #112

Copy link
Contributor

@errordeveloper errordeveloper left a comment

Choose a reason for hiding this comment

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

Thanks a lot for looking into this! Few minor suggestions... Overall it's a good start 👍

return nil
}
}
return fmt.Errorf("aws-iam-authenticator not installed")

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@@ -46,16 +45,6 @@ func CheckKubectlVersion(env []string) error {
return nil
}

func CheckHeptioAuthenticatorAWS() error {

This comment was marked as abuse.


// CheckHeptioAuthenticatorAWS checks for the authenticator binary existence.
// DEPRECATED: Use CheckAuthenticatorBinary
func CheckHeptioAuthenticatorAWS() error {

This comment was marked as abuse.

}

// CheckAuthenticatorBinary checks for the authenticator binary existence.
func CheckAuthenticatorBinary() error {

This comment was marked as abuse.

@qustavo qustavo force-pushed the authenticator-binary branch from b94765c to 615a7d3 Compare August 6, 2018 07:34
return nil
}
}
return fmt.Errorf("Neither aws-iam-authenticator nor heptio-authenticator-aws are installed")

This comment was marked as abuse.

@qustavo qustavo force-pushed the authenticator-binary branch from 615a7d3 to 1497aca Compare August 6, 2018 08:53
Also added some cosmetic changes:
Moved the function from kubectl.go to utils.go given that the binary
checking is not related to kubectl
And update the function name from CheckHeptioAuthenticatorAWS to a more
generic one.
Copy link
Contributor

@errordeveloper errordeveloper left a comment

Choose a reason for hiding this comment

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

LGTM as is, but let me know if you want to implement kubeconfig part in this PR or a separate on :)

@qustavo
Copy link
Author

qustavo commented Aug 6, 2018

Let's do it in a separate PR

@errordeveloper errordeveloper merged commit d36b558 into eksctl-io:master Aug 6, 2018
@qustavo qustavo deleted the authenticator-binary branch August 6, 2018 12:09
martina-if added a commit to martina-if/eksctl that referenced this pull request Jan 31, 2020
torredil pushed a commit to torredil/eksctl that referenced this pull request May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants