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

refactor(controller): minor cleanup of aws managed identity credential helper #2318

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

krancour
Copy link
Member

@krancour krancour commented Jul 19, 2024

Similar to a 403 when attempting to get an ECR auth token via an assumed IAM role, I believe that a 403 when attempting to get an ECR token via the controller's own IAM role should be treated more like simply coming up empty-handed and treated less like an error. In this way, the caller can move on to checking other credential helpers.

Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
@krancour krancour requested a review from a team as a code owner July 19, 2024 18:57
@krancour krancour self-assigned this Jul 19, 2024
Copy link

netlify bot commented Jul 19, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit b3289b7
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/669ab71932bff700087bdfcc
😎 Deploy Preview https://deploy-preview-2318.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@krancour krancour changed the title fix: minor cleanup of aws managed identity credential helper refactor(controller): minor cleanup of aws managed identity credential helper Jul 19, 2024
@krancour krancour added this to the v0.8.0 milestone Jul 19, 2024
Copy link
Contributor

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@krancour krancour enabled auto-merge July 19, 2024 19:01
Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 47.24%. Comparing base (1cd7f38) to head (b3289b7).
Report is 1 commits behind head on main.

Files Patch % Lines
...nal/credentials/kubernetes/ecr/managed_identity.go 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2318      +/-   ##
==========================================
- Coverage   47.26%   47.24%   -0.02%     
==========================================
  Files         244      244              
  Lines       17384    17391       +7     
==========================================
  Hits         8216     8216              
- Misses       8755     8762       +7     
  Partials      413      413              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@krancour krancour added this pull request to the merge queue Jul 19, 2024
Merged via the queue into akuity:main with commit 52365ce Jul 19, 2024
26 of 28 checks passed
@krancour krancour deleted the krancour/cred-helper-cleanup branch July 19, 2024 19:15
github-actions bot pushed a commit that referenced this pull request Jul 19, 2024
…l helper (#2318)

Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
(cherry picked from commit 52365ce)
@akuitybot
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants