Skip to content

Commit af8a4b0

Browse files
punkwalkerPankaj WalkevenawsveekalyTiberiuGC
authored andcommitted
Add utils command to migrate iamidentitymappings to EKS access entries (eksctl-io#7710)
* Added migrate-to-access-entry cmd structure * Fix Target Authentication mode validation * Added logic to get accessEntries and cmEntries from cluster * Added logic to make unique list of configmap accessEntries, and stack creation logic * Added UpdateAuthentication mode and aeEntries filter logic * Add approve flag check * Added functionality to remove awsauth after switch to API only * Adds logic to fetch FullARN of path stripped IAMIdentityMappings * Updates some info log text * Adds test case and refactors code * Removes comments * Adds taskTree and address PR comments * Refactors code and Adds exception handling for NoSuchEntityException * Resolves go.mod and go.sum conflicts * Doc update for migrate-to-access-entry feature * Fixed minimum iam policies doc to add permission for iam:GetUser * Updated access-entries doc at migrate-to-access-entry section * Fixes failing Migrate To Access Entry Test & go.mod, go.sum * Amends migrate to access entry documentation * improve logs and simplify code logic * add unit tests * ensure target-auth-mode has a valid value --------- Co-authored-by: Pankaj Walke <[email protected]> Co-authored-by: Venkat Penmetsa <[email protected]> Co-authored-by: Venkat Penmetsa <[email protected]> Co-authored-by: Tibi <[email protected]>
1 parent f5fdc69 commit af8a4b0

File tree

11 files changed

+1042
-10
lines changed

11 files changed

+1042
-10
lines changed

pkg/actions/accessentry/fakes/fake_getter.go

Lines changed: 120 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/actions/accessentry/getter.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ import (
1010
"github.com/weaveworks/eksctl/pkg/awsapi"
1111
)
1212

13+
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
14+
//counterfeiter:generate -o fakes/fake_getter.go . GetterInterface
15+
type GetterInterface interface {
16+
Get(ctx context.Context, principalARN api.ARN) ([]Summary, error)
17+
}
18+
1319
type Getter struct {
1420
clusterName string
1521
eksAPI awsapi.EKS

0 commit comments

Comments
 (0)