-
-
Notifications
You must be signed in to change notification settings - Fork 98
feat(autodiscovery): add support for k8s initContainers (#4569) #4570
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(autodiscovery): add support for k8s initContainers (#4569) #4570
Conversation
Thanks for the pullrequest. It's a really nice improvement. |
@luilegeant I opened luilegeant#1 on your fork |
fix: formatting issue
@olblak should be ok, I just merged/approved it. |
Looking at the test, there is something weird with the Updatecli that try to find the latest version for the Go module Instead of retriggering the test for this pull request, I am force merging it |
I'll trigger a release new Monday |
Fixes #4569
Add support for initContainers in k8s manifest files.
Test
Tested with
No warning/error related to autodiscovery/kubernetes.
Manual test
Worked as expected all images got updated.
Additional Information
Checklist
=> Not applicable (?)
Tradeoff
$.spec.template.spec.initContainers[%d].image
- The automated test is an incomplete deployment manifest.Potential improvement
More tests to cover all path (see tradeoff above):
$.spec.initContainers[%d].image
$.spec.jobTemplate.spec.template.spec.initContainers[%d].image
More complex test to validate the base behaviour hasn't been skipped by adding a container section.
=> Hasn't been done, couldn't figure out the test validation input to provide in
main_test.go
.