k8s-image-swapper
k8s-image-swapper copied to clipboard
feat: add custom tags for ECR object
This PR adds the ability to configure custom tags for created repositories.
Codecov Report
Base: 59.87% // Head: 59.87% // No change to project coverage :thumbsup:
Coverage data is based on head (
3bbc710
) compared to base (6eacc50
). Patch has no changes to coverable lines.
Additional details and impacted files
@@ Coverage Diff @@
## main #191 +/- ##
=======================================
Coverage 59.87% 59.87%
=======================================
Files 5 5
Lines 314 314
=======================================
Hits 188 188
Misses 103 103
Partials 23 23
Impacted Files | Coverage Δ | |
---|---|---|
pkg/config/config.go | 0.00% <ø> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Hi @estahn,
Your requested change was made. Are we good ?
@estahn is something missing here?
Thanks for the review :-)
It appears like I made provisions for this use-case back in the day but didn't actually implement it:
https://github.com/estahn/k8s-image-swapper/blob/a6bf66791ed59e3f595b8d4f83c61ac0fb5d2e64/.k8s-image-swapper.yml#L45-L48
https://github.com/estahn/k8s-image-swapper/blob/a6bf66791ed59e3f595b8d4f83c61ac0fb5d2e64/pkg/registry/ecr.go#L49-L53
Do you think you can adjust the changes to use the configuration from target.aws.ecrOptions.tags
instead?
Is it ok this way ?
Looking good so far. Will give it another review a bit later or tomorrow morning.
All done :-)
:tada: This PR is included in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: