-
Notifications
You must be signed in to change notification settings - Fork 575
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
WIP: feat: eks pod identity support for controllers #5205
base: main
Are you sure you want to change the base?
WIP: feat: eks pod identity support for controllers #5205
Conversation
This adds support for using EKS pod identity for the CAPA controller when the management cluster is an EKS cluster Signed-off-by: Richard Case <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Richard Case <[email protected]>
@richardcase: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Copilot
AI
left a comment
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.
Copilot reviewed 6 out of 21 changed files in this pull request and generated 2 suggestions.
Files not reviewed (15)
- cmd/clusterawsadm/cloudformation/bootstrap/control_plane.go: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/node.go: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/cluster_api_controller.go: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_extra_statements.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_eks_default_roles.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_bootstrap_user.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_different_instance_profiles.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_all_secret_backends.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_s3_bucket.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_eks_kms_prefix.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_eks_console.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_allow_assume_role.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_custom_bootstrap_user.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/default.yaml: Evaluated as low risk
- cmd/clusterawsadm/cloudformation/bootstrap/fixtures/with_ssm_secret_backend.yaml: Evaluated as low risk
Comments skipped due to low confidence (1)
cmd/clusterawsadm/cmd/controller/credentials/use_pod_identity.go:65
- The function 'usePodIdentity' and its helper functions are not covered by tests.
func usePodIdentity(region, clusterName, namespace, serviceAccount, roleName string) error {
|
||
fmt.Printf("Creating pod association for service account %s.....\n", serviceAccount) | ||
|
||
createInpuut := &eks.CreatePodIdentityAssociationInput{ |
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.
The variable name 'createInpuut' contains a typo. It should be 'createInput'.
createInpuut := &eks.CreatePodIdentityAssociationInput{ | |
createInput := &eks.CreatePodIdentityAssociationInput{ |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
|
||
newCmd := &cobra.Command{ | ||
Use: "use-pod-identity", | ||
Short: "Enable EKS pod identiy with CAPA", |
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.
The word 'identiy' contains a typo. It should be 'identity'.
Short: "Enable EKS pod identiy with CAPA", | |
Short: "Enable EKS pod identity with CAPA", |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
What type of PR is this?
/kind feature
What this PR does / why we need it:
This adds support for using EKS pod identity for the CAPA controller when the management cluster is an EKS cluster.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
This is in addition to #4906 .
Checklist:
Release note: