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

login-add-eks-cluster-support #1102

Merged
merged 11 commits into from
Aug 16, 2023
Merged

login-add-eks-cluster-support #1102

merged 11 commits into from
Aug 16, 2023

Conversation

calvix
Copy link
Contributor

@calvix calvix commented Aug 9, 2023

towards giantswarm/roadmap#2609

add opsctl login support for EKS WC

as EKS only supports kubeconfigs with aws cli IAM auth, its necessary to have active and working AWS credentials in order to use the kubeconfig, there is no proper workaround

cmd/login/aws.go Outdated Show resolved Hide resolved
cmd/login/clientcert.go Outdated Show resolved Hide resolved
@calvix calvix self-assigned this Aug 10, 2023
@calvix calvix marked this pull request as ready for review August 10, 2023 09:34
@calvix calvix requested a review from a team as a code owner August 10, 2023 09:34
@calvix calvix requested review from a team and removed request for a team August 10, 2023 09:34
@calvix calvix requested review from a team and removed request for a team August 15, 2023 07:26
@marians marians requested a review from a team August 15, 2023 12:12
@marians
Copy link
Member

marians commented Aug 15, 2023

Pinged bigmac as the owners of the login command

cmd/login/runner.go Show resolved Hide resolved
if r.loginOptions.isWCClientCert {
return r.handleWCClientCert(ctx)
if r.loginOptions.isWC {
err := r.handleWCKubeconfig(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, the function being called is specifically for handling client certs on a workload cluster. (We are planning to move this to a different command so it'll be helpful to keep the name)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the function for handling clientcert is still there it just moved later to avoid code duplication
https://github.com/giantswarm/kubectl-gs/pull/1102/files#diff-1f160945410f9311805f9b1ff5284e4cbb59cdd8934057db5bd7b3e40049979fR199-R271

@calvix
Copy link
Contributor Author

calvix commented Aug 16, 2023

Added few comments as we agreed in the call.

Copy link
Contributor

@anvddriesch anvddriesch left a comment

Choose a reason for hiding this comment

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

thank you ❤️

@calvix calvix merged commit 452438a into main Aug 16, 2023
1 check passed
@calvix calvix deleted the login-add-eks-cluster-support branch August 16, 2023 14:22
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