-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
TAG: Poll AWS EKS clusters fom AWS #38984
Conversation
228d360
to
20aa730
Compare
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.
Can we add some tests?
if err != nil { | ||
errs = append(errs, err) | ||
} | ||
if cluster != nil { | ||
clusters = append(clusters, cluster) | ||
} | ||
associatedPolicies = append(associatedPolicies, clusterAssociatedPolicies...) | ||
accessEntries = append(accessEntries, clusterAccessEntries...) |
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.
In what cases do we expect both an error and the rest of the arguments to be non-nil?
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.
We pull each region independently and each one shouldn't affect the other - i.e. we might miss permissions to a specific region or the api calls fails and in that case we should continue with other regions that are alive and working
Added in 4b2a6cd |
91324c3
to
f1c942e
Compare
This PR polls the AWS EKS clusters and their AssociatedAccessPolicies and AccessEntries and syncs them into TAG. Part of gravitational/access-graph#459 Signed-off-by: Tiago Silva <[email protected]>
f1c942e
to
b1a143d
Compare
This PR polls the AWS EKS clusters and their AssociatedAccessPolicies and AccessEntries and syncs them into TAG. Part of gravitational/access-graph#459 Signed-off-by: Tiago Silva <[email protected]>
This PR polls the AWS EKS clusters and their AssociatedAccessPolicies and AccessEntries and syncs them into TAG. Part of gravitational/access-graph#459 Signed-off-by: Tiago Silva <[email protected]>
This PR polls the AWS EKS clusters and their AssociatedAccessPolicies and AccessEntries and syncs them into TAG. Part of gravitational/access-graph#459 Signed-off-by: Tiago Silva <[email protected]>
This PR polls the AWS EKS clusters and their AssociatedAccessPolicies and AccessEntries and syncs them into TAG. Part of gravitational/access-graph#459 Signed-off-by: Tiago Silva <[email protected]>
This PR polls the AWS EKS clusters and their AssociatedAccessPolicies and AccessEntries and syncs them into TAG.
Part of https://github.com/gravitational/access-graph/issues/459