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

feat(directives): optional images for kustomize-set-image #3115

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Dec 10, 2024

With this pull request, setting images for the kustomize-set-image step is now optional.

When left unspecified, all images from the Freight collection are automatically set as long as there is no ambiguous target image found (due to e.g. two Warehouses having different selectors for the same image). In case of an ambiguous target image, an error is returned and manual configuration of images will still be required.

It is worth noting that the generated commit message describes what's being set in the kustomization.yaml, and will thus contain a reference to all images even if they do not appear in any of the Kubernetes manifests which are part of the Kustomization overlay.

Fixes: #2788

Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 4462a6c
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-io/deploys/675872e3e951f4000814e35a
😎 Deploy Preview https://deploy-preview-3115.docs.kargo.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.

@hiddeco hiddeco force-pushed the kus-update-optional-img branch from 6fd1413 to bad0e65 Compare December 10, 2024 14:33
@hiddeco hiddeco requested a review from a team as a code owner December 10, 2024 16:44
@hiddeco hiddeco force-pushed the kus-update-optional-img branch from 3b0bc5a to 654d234 Compare December 10, 2024 16:48
@hiddeco hiddeco self-assigned this Dec 10, 2024
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 93.50649% with 5 lines in your changes missing coverage. Please review.

Project coverage is 51.26%. Comparing base (ad9e16f) to head (4462a6c).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
internal/controller/freight/finder.go 90.62% 2 Missing and 1 partial ⚠️
internal/directives/kustomize_image_setter.go 95.55% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3115      +/-   ##
==========================================
+ Coverage   51.14%   51.26%   +0.11%     
==========================================
  Files         283      283              
  Lines       25474    25563      +89     
==========================================
+ Hits        13028    13104      +76     
- Misses      11752    11762      +10     
- Partials      694      697       +3     

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

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.

🔥 LGTM

Signed-off-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco force-pushed the kus-update-optional-img branch from 654d234 to 4462a6c Compare December 10, 2024 16:57
@hiddeco hiddeco enabled auto-merge December 10, 2024 16:57
@hiddeco hiddeco added this pull request to the merge queue Dec 10, 2024
Merged via the queue into akuity:main with commit aecc74f Dec 10, 2024
17 checks passed
@hiddeco hiddeco deleted the kus-update-optional-img branch December 10, 2024 17:21
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.

kustomize-set-image improvements
2 participants