-
Notifications
You must be signed in to change notification settings - Fork 72
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
Empty commits #135
Comments
In the normal course of things, I would expect the controller to skip an update when there are no changes made. Are you using the new "push branch" part of the API? push:
branch: <something> Can I see the ImageUpdateAutomation definition, perhaps? |
I don't think I'm using the "push branch" thing... here's the definition:
|
OK, I can reproduce the problem by forking your repo and making adjustments as necessary. I restricted updates to the path k8s/gen/prod, in the hope that it was at least a workaround -- but the empty commits persist (and the investigation continues...) |
Wow, OK: go-git/go-git#253 I can put a couple of mitigations in:
|
@squaremo now I realise it's the same issue in the CLI, flux bootstrap for some users creates empty commits: fluxcd/flux2#1021 |
I have an ImageUpdateAutomation object with spec.interval set to 1m0s. I see a new commit to my repo every minute, whether or not any image has changed, so the vast majority of these commits are empty commits (i.e. no changes).
The empty commits are, I suppose, harmless; but it would be nice if there was a way of avoiding them.
The text was updated successfully, but these errors were encountered: