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

Add utils command to migrate iamidentitymappings to EKS access entries #7710

Merged
merged 22 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a81e482
Added migrate-to-access-entry cmd structure
Mar 1, 2024
e7c03f1
Fix Target Authentication mode validation
Mar 1, 2024
bcbcf5f
Added logic to get accessEntries and cmEntries from cluster
venaws Mar 1, 2024
9f79636
Added logic to make unique list of configmap accessEntries, and stack…
venaws Mar 1, 2024
3b82eca
Added UpdateAuthentication mode and aeEntries filter logic
Mar 3, 2024
22ab908
Add approve flag check
Mar 5, 2024
8ec312d
Added functionality to remove awsauth after switch to API only
veekaly Mar 22, 2024
6872eb5
Adds logic to fetch FullARN of path stripped IAMIdentityMappings
Apr 12, 2024
5e7203a
Updates some info log text
Apr 12, 2024
a6850fe
Adds test case and refactors code
Apr 13, 2024
e50ac72
Removes comments
Apr 15, 2024
3bd5927
Adds taskTree and address PR comments
Apr 18, 2024
e9ca916
Refactors code and Adds exception handling for NoSuchEntityException
punkwalker Apr 18, 2024
7b58656
Resolves go.mod and go.sum conflicts
punkwalker Apr 18, 2024
3dce348
Doc update for migrate-to-access-entry feature
veekaly Apr 19, 2024
7b7b60e
Fixed minimum iam policies doc to add permission for iam:GetUser
veekaly Apr 22, 2024
2e14dfa
Updated access-entries doc at migrate-to-access-entry section
veekaly Apr 22, 2024
df601bc
Fixes failing Migrate To Access Entry Test & go.mod, go.sum
punkwalker Apr 22, 2024
0f55a7a
Amends migrate to access entry documentation
punkwalker Apr 22, 2024
a40a312
improve logs and simplify code logic
TiberiuGC Apr 23, 2024
a21a8c1
add unit tests
TiberiuGC Apr 24, 2024
f34dd6f
ensure target-auth-mode has a valid value
TiberiuGC Apr 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions pkg/actions/accessentry/fakes/fake_getter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pkg/actions/accessentry/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import (
"github.com/weaveworks/eksctl/pkg/awsapi"
)

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//counterfeiter:generate -o fakes/fake_getter.go . GetterInterface
type GetterInterface interface {
Get(ctx context.Context, principalARN api.ARN) ([]Summary, error)
}

type Getter struct {
clusterName string
eksAPI awsapi.EKS
Expand Down
Loading