fleet
fleet copied to clipboard
Push to git does not trigger new deployment
I have a git repo in Rancher that polls my main branch. I can see the git commit sha change when Fleet checks my repository, but it doesn't trigger a new deployment of my website. If I go into rancher and click "redeploy" it deploys correctly, so it dosen't seem to be anything wrong with my repo.
The only weird thing I have found is this log entries for gitjob when it sees a change in my repo:
time="2022-07-07T19:04:06Z" level=debug msg="DesiredSet - No change(2) batch/v1, Kind=Job fleet-default/test3-f219d for sync-repo fleet-default/test3"
time="2022-07-07T19:04:06Z" level=debug msg="DesiredSet - Created batch/v1, Kind=Job fleet-default/test3-a821e for sync-repo fleet-default/test3"
time="2022-07-07T19:04:06Z" level=debug msg="DesiredSet - Delete batch/v1, Kind=Job fleet-default/test3-f219d for sync-repo fleet-default/test3"
time="2022-07-07T19:04:06Z" level=debug msg="DesiredSet - No change(2) batch/v1, Kind=Job fleet-default/test3-a821e for sync-repo fleet-default/test3"
time="2022-07-07T19:04:06Z" level=error msg="error syncing 'fleet-default/test3': handler sync-repo: failed to delete fleet-default/test3-f219d batch/v1, Kind=Job for sync-repo fleet-default/test3: jobs.batch \"test3-f219d\" not found, requeuing"
time="2022-07-07T19:04:06Z" level=debug msg="DesiredSet - No change(2) batch/v1, Kind=Job fleet-default/test3-a821e for sync-repo fleet-default/test3"
Not sure if this is a bug or something wrong.
I'm on Rancher 2.6.5 and Fleet 100.0.3+up0.3.9 (if that is the version).