-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
There was a problem hiding this 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 👍
pkg/utils/utils.go
Outdated
return nil | ||
} | ||
} | ||
return fmt.Errorf("aws-iam-authenticator not installed") |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -46,16 +45,6 @@ func CheckKubectlVersion(env []string) error { | |||
return nil | |||
} | |||
|
|||
func CheckHeptioAuthenticatorAWS() error { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
pkg/utils/utils.go
Outdated
|
||
// CheckHeptioAuthenticatorAWS checks for the authenticator binary existence. | ||
// DEPRECATED: Use CheckAuthenticatorBinary | ||
func CheckHeptioAuthenticatorAWS() error { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
pkg/utils/utils.go
Outdated
} | ||
|
||
// CheckAuthenticatorBinary checks for the authenticator binary existence. | ||
func CheckAuthenticatorBinary() error { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Did you think about plug this all the way to |
b94765c
to
615a7d3
Compare
pkg/utils/kubectl.go
Outdated
return nil | ||
} | ||
} | ||
return fmt.Errorf("Neither aws-iam-authenticator nor heptio-authenticator-aws are installed") |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
615a7d3
to
1497aca
Compare
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.
There was a problem hiding this 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 :)
Let's do it in a separate PR |
Adding feature 6
Add SECURITY_CONTACTS
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