Add iam:ListInstanceProfiles permission to Karpenter#17854
Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom Jan 11, 2026
Merged
Add iam:ListInstanceProfiles permission to Karpenter#17854k8s-ci-robot merged 1 commit intokubernetes:masterfrom
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
Conversation
hakman
approved these changes
Jan 11, 2026
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
k8s-ci-robot
added a commit
that referenced
this pull request
Feb 1, 2026
…-upstream-release-1.34 Automated cherry pick of #17854: Add iam:ListInstanceProfiles permission to Karpenter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The karpenter jobs are failing with this iam permission error:
https://testgrid.k8s.io/kops-misc#kops-aws-karpenter
https://storage.googleapis.com/kubernetes-ci-logs/logs/e2e-kops-aws-karpenter/2010022566961352704/artifacts/cluster-info/kube-system/karpenter-849c87cc57-qzjgr/controller.log
{"level":"ERROR","time":"2026-01-10T16:26:41.804Z","logger":"controller","caller":"controller/controller.go:474","message":"Reconciler error","commit":"1ad0d78","controller":"instanceprofile.garbagecollection","namespace":"","name":"","reconcileID":"c21b77ab-9df2-4d77-9afd-208c51bc1d23","aws-error-code":"AccessDenied","aws-operation-name":"ListInstanceProfiles","aws-request-id":"9feb3d6b-17de-47b9-94c1-fe1312ebc017","aws-service-name":"IAM","aws-status-code":403,"error":"listing instance profiles, listing instance profiles, operation error IAM: ListInstanceProfiles, https response error StatusCode: 403, RequestID: 9feb3d6b-17de-47b9-94c1-fe1312ebc017, api error AccessDenied: User: arn:aws:sts::808842816990:assumed-role/karpenter.kube-system.sa.e2e-e2e-kops-aws-karpenter.tests-qd5hli/1768062234299783051 is not authorized to perform: iam:ListInstanceProfiles on resource: arn:aws:iam::808842816990:instance-profile/karpenter/eu-west-1/e2e-e2e-kops-aws-karpenter.tests-kops-aws.k8s.io/ because no identity-based policy allows the iam:ListInstanceProfiles action (aws-error-code=AccessDenied, aws-operation-name=ListInstanceProfiles, aws-request-id=9feb3d6b-17de-47b9-94c1-fe1312ebc017, aws-service-name=IAM, aws-status-code=403)"}