-
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
Git pushes to different branch are behind the base branch. #450
Comments
Hey @jamesloosli thanks for opening this issue. I noticed we have an old issue that proposed this but was closed a while ago: #205. But it seems that the way IAC works has changed since then. I added this to the backlog and we will take a look once the Git refactoring piece is done. |
I am in the same situation with a large kub cluster as well. I wonder if there should be an info message in the controller logs when it cannot push upstream? We push to branches so we can run some basic CI/CD on the PR at the github level, before auto merging the PR. One workaround I am thinking about is force deleting the remote branch if it is stale. |
This becomes even more relevant when using |
@jamesloosli @cep21 can you please try the RC image below to confirm that it resolves the problem you are experiencing?
|
@pjbgf I think this is still a bug in the controller. I see this behavior right now using version 0.30.0. My checkout branch is main and push branch is production. I have not overwritten the feature flags as this per. documentation seem to not fix the issue;
FYI @stefanprodan |
@EmilMunksoe It's not clear from your reply what issue you're seeing under what circumstances, please open a new issue. You can refer to this issue if you think it is the same issue, but please provide complete details about the situation. Is your push branch stale and is |
Hi Y'all,
I'm implementing a workflow where my image update automation flows are updating a different target branch vs the source branch. This seems to be working, but the target branch becomes stale very quickly (we have our flux manifests in a monorepo with ~30 services). Because the branch becomes out of date, automated PR's require manual rebase.
My preferred behavior would be for the image-automation-controller to do a fresh clone of the base branch, then apply updates to the current HEAD of that branch and push --force to the target branch.
If this could at least be a setting available in the CRD, that would be fine. Any other smarter workarounds would be appreciated.
The text was updated successfully, but these errors were encountered: