-
Notifications
You must be signed in to change notification settings - Fork 70
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
commit-template also include non-updated images #133
Comments
Same issue here, we have one |
I think I see what is happening here. It comes from me misunderstanding how setters keep count of when they are applied -- I thought they would only count when they made a change, but they count when they are referenced, whether or not they made a change. |
With reference to #133 this commmit adapts the update->result test so that it checks an additional case: that a field with an update marker that _does_ correspond to a policy, but _doesn't_ get changed, is not included in the results. This test fails at present, because the method for determining the result is to count which setters are referenced, rather than which fields were changed. Signed-off-by: Michael Bridgen <[email protected]>
With reference to #133 this commit adapts the update->result test so that it checks an additional case: that a field with an update marker that _does_ correspond to a policy, but _doesn't_ get changed, is not included in the results. This test fails at present, because the method for determining the result is to count which setters are referenced, rather than which fields were changed. Signed-off-by: Michael Bridgen <[email protected]>
With reference to #133 this commit adapts the update->result test so that it checks an additional case: that a field with an update marker that _does_ correspond to a policy, but _doesn't_ get changed, is not included in the results. This test fails at present, because the method for determining the result is to count which setters are referenced, rather than which fields were changed. Signed-off-by: Michael Bridgen <[email protected]>
Describe the bug
When using the message template for the image automation described in documentation, the commit includes not only the updated image but all images that using that ImageUpdateAutomation object.
In below only IMAGE1 is updated but both IMAGE1 and IMAGE2 is included in commit message
ImageUpdateAutomation object spec includes:
messageTemplate: 'Automated image update: {{range .Updated.Images}}{{println .}}{{end}}'
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
Commit message should only include the updated image and its file.
Additional context
Below please provide the output of the following commands:
The text was updated successfully, but these errors were encountered: