kube2iam
kube2iam copied to clipboard
feat: support IMDSv2 ( use aws-go-sdk-v2 )
What this PR does / why we need it:
- Support EKS 1.22
- Using IMDSv2 from server definition, before this server healthcheck made metadata request without token and healthcheck go to fail state. After healthcheck is failed any pods can't AssumeRole as I correct understood
- Upgraded aws-go-sdk to v2 that send token automatically
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)
- fixes #339
- fixes #325
Special notes:
- Use aws-go-sdk-v2
- The aws-go-sdk-v2 requires a minimum version of Go 1.15
- Support EKS 1.22
Checklist chart
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
- [ ] Chart Version bumped
- [ ] Variables are documented in the README.md