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

fix(promotion): prepare credentials for Helm chart dependency update #1977

Merged
merged 5 commits into from May 14, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented May 8, 2024

Fixes: #1946

Copy link

netlify bot commented May 8, 2024

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

Name Link
🔨 Latest commit 73e32d9
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/66430bb7b1db6f00088bfdbb
😎 Deploy Preview https://deploy-preview-1977.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.

Copy link
Member

@devholic devholic left a comment

Choose a reason for hiding this comment

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

LGTM 👍

internal/controller/promotion/helm.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 27.64228% with 89 lines in your changes are missing coverage. Please review.

Project coverage is 46.00%. Comparing base (aaa7e05) to head (97756c3).
Report is 18 commits behind head on main.

❗ Current head 97756c3 differs from pull request most recent head 73e32d9. Consider uploading reports for the commit 73e32d9 to get more accurate results

Files Patch % Lines
internal/controller/promotion/helm.go 32.81% 40 Missing and 3 partials ⚠️
internal/helm/helm.go 0.00% 39 Missing ⚠️
internal/credentials/credentials.go 66.66% 5 Missing and 1 partial ⚠️
internal/controller/promotion/git.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1977      +/-   ##
==========================================
- Coverage   46.25%   46.00%   -0.25%     
==========================================
  Files         235      235              
  Lines       16005    16087      +82     
==========================================
- Hits         7403     7401       -2     
- Misses       8242     8327      +85     
+ Partials      360      359       -1     

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

return nil, fmt.Errorf("error updating dependencies for chart %q: %w", chart, err)
return nil, fmt.Errorf("setting dependency versions for chart %q: %w", chart, err)
}
if err = h.prepareDependencyCredentialsFn(context.TODO(), homeDir, chartYAMLPath, namespace); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Other than needing to tweak some function signatures and function calls, is there anything preventing us from getting at the right context here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really, but the size of the constructor is starting to feel outrageous and a mixed bag of not-always-so-relevant things.

Copy link
Member

@krancour krancour left a comment

Choose a reason for hiding this comment

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

🔥

Signed-off-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco added this pull request to the merge queue May 14, 2024
Merged via the queue into akuity:main with commit 0ddeb42 May 14, 2024
15 checks passed
@hiddeco hiddeco deleted the helm-promo-creds branch May 14, 2024 07:40
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.

Helm subchart promotion does not seem to use credentials
3 participants