Repository: rancher/fleet

Issue:
Race condition occurring between finishing job and new incoming commit from Webhook
## Issue:
With a webhook in place, if a commit is sent while the previous job is not finished the gitjob never changes status.

In the screenshot it can be seen how even when the replica number has been updated to 5, still the UI displays 2.
![2024-11-08_16-43](https://github.com/user-attachments/assets/c63f6dfe-dc46-4d64-a3da-72ab31af0f92)



## To reproduce
- Set a webhook with fleet
- Automatically send 1 commit, perform a change and add a second commit (for example in the number of replicas). This repo can be used as example if desired: https://github.com/fleetqa/webhook-github-test 

### Observed behavior:
- Gitjob does not update the replicas
- Gitrepo does however update correctly

### Expected behavior:
- Number of replicas updated correctly

### Logs:

<details>
<summary>Webhook Payload</summary>

```json
{
  "ref": "refs/heads/main",
  "before": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224",
  "after": "21c9d870151b6da1bedc2681014c39cdf8129585",
  "repository": {
    "id": 836697933,
    "node_id": "R_kgDOMd7_TQ",
    "name": "webhook-github-test",
    "full_name": "fleetqa/webhook-github-test",
    "private": false,
    "owner": {
      "name": "fleetqa",
      "email": "166113384+fleetqa@users.noreply.github.com",
      "login": "fleetqa",
      "id": 166113384,
      "node_id": "U_kgDOCeawaA",
      "avatar_url": "https://avatars.githubusercontent.com/u/166113384?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/fleetqa",
      "html_url": "https://github.com/fleetqa",
      "followers_url": "https://api.github.com/users/fleetqa/followers",
      "following_url": "https://api.github.com/users/fleetqa/following{/other_user}",
      "gists_url": "https://api.github.com/users/fleetqa/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/fleetqa/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/fleetqa/subscriptions",
      "organizations_url": "https://api.github.com/users/fleetqa/orgs",
      "repos_url": "https://api.github.com/users/fleetqa/repos",
      "events_url": "https://api.github.com/users/fleetqa/events{/privacy}",
      "received_events_url": "https://api.github.com/users/fleetqa/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "html_url": "https://github.com/fleetqa/webhook-github-test",
    "description": null,
    "fork": false,
    "url": "https://github.com/fleetqa/webhook-github-test",
    "forks_url": "https://api.github.com/repos/fleetqa/webhook-github-test/forks",
    "keys_url": "https://api.github.com/repos/fleetqa/webhook-github-test/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/fleetqa/webhook-github-test/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/fleetqa/webhook-github-test/teams",
    "hooks_url": "https://api.github.com/repos/fleetqa/webhook-github-test/hooks",
    "issue_events_url": "https://api.github.com/repos/fleetqa/webhook-github-test/issues/events{/number}",
    "events_url": "https://api.github.com/repos/fleetqa/webhook-github-test/events",
    "assignees_url": "https://api.github.com/repos/fleetqa/webhook-github-test/assignees{/user}",
    "branches_url": "https://api.github.com/repos/fleetqa/webhook-github-test/branches{/branch}",
    "tags_url": "https://api.github.com/repos/fleetqa/webhook-github-test/tags",
    "blobs_url": "https://api.github.com/repos/fleetqa/webhook-github-test/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/fleetqa/webhook-github-test/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/fleetqa/webhook-github-test/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/fleetqa/webhook-github-test/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/fleetqa/webhook-github-test/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/fleetqa/webhook-github-test/languages",
    "stargazers_url": "https://api.github.com/repos/fleetqa/webhook-github-test/stargazers",
    "contributors_url": "https://api.github.com/repos/fleetqa/webhook-github-test/contributors",
    "subscribers_url": "https://api.github.com/repos/fleetqa/webhook-github-test/subscribers",
    "subscription_url": "https://api.github.com/repos/fleetqa/webhook-github-test/subscription",
    "commits_url": "https://api.github.com/repos/fleetqa/webhook-github-test/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/fleetqa/webhook-github-test/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/fleetqa/webhook-github-test/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/fleetqa/webhook-github-test/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/fleetqa/webhook-github-test/contents/{+path}",
    "compare_url": "https://api.github.com/repos/fleetqa/webhook-github-test/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/fleetqa/webhook-github-test/merges",
    "archive_url": "https://api.github.com/repos/fleetqa/webhook-github-test/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/fleetqa/webhook-github-test/downloads",
    "issues_url": "https://api.github.com/repos/fleetqa/webhook-github-test/issues{/number}",
    "pulls_url": "https://api.github.com/repos/fleetqa/webhook-github-test/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/fleetqa/webhook-github-test/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/fleetqa/webhook-github-test/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/fleetqa/webhook-github-test/labels{/name}",
    "releases_url": "https://api.github.com/repos/fleetqa/webhook-github-test/releases{/id}",
    "deployments_url": "https://api.github.com/repos/fleetqa/webhook-github-test/deployments",
    "created_at": 1722511363,
    "updated_at": "2024-11-08T15:47:55Z",
    "pushed_at": 1731080885,
    "git_url": "git://github.com/fleetqa/webhook-github-test.git",
    "ssh_url": "git@github.com:fleetqa/webhook-github-test.git",
    "clone_url": "https://github.com/fleetqa/webhook-github-test.git",
    "svn_url": "https://github.com/fleetqa/webhook-github-test",
    "homepage": null,
    "size": 5,
    "stargazers_count": 0,
    "watchers_count": 0,
    "language": null,
    "has_issues": true,
    "has_projects": true,
    "has_downloads": true,
    "has_wiki": true,
    "has_pages": false,
    "has_discussions": false,
    "forks_count": 0,
    "mirror_url": null,
    "archived": false,
    "disabled": false,
    "open_issues_count": 0,
    "license": null,
    "allow_forking": true,
    "is_template": false,
    "web_commit_signoff_required": false,
    "topics": [

    ],
    "visibility": "public",
    "forks": 0,
    "open_issues": 0,
    "watchers": 0,
    "default_branch": "main",
    "stargazers": 0,
    "master_branch": "main"
  },
  "pusher": {
    "name": "fleetqa",
    "email": "166113384+fleetqa@users.noreply.github.com"
  },
  "sender": {
    "login": "fleetqa",
    "id": 166113384,
    "node_id": "U_kgDOCeawaA",
    "avatar_url": "https://avatars.githubusercontent.com/u/166113384?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/fleetqa",
    "html_url": "https://github.com/fleetqa",
    "followers_url": "https://api.github.com/users/fleetqa/followers",
    "following_url": "https://api.github.com/users/fleetqa/following{/other_user}",
    "gists_url": "https://api.github.com/users/fleetqa/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/fleetqa/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/fleetqa/subscriptions",
    "organizations_url": "https://api.github.com/users/fleetqa/orgs",
    "repos_url": "https://api.github.com/users/fleetqa/repos",
    "events_url": "https://api.github.com/users/fleetqa/events{/privacy}",
    "received_events_url": "https://api.github.com/users/fleetqa/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": false
  },
  "created": false,
  "deleted": false,
  "forced": false,
  "base_ref": null,
  "compare": "https://github.com/fleetqa/webhook-github-test/compare/ded1afcfdd8f...21c9d870151b",
  "commits": [
    {
      "id": "21c9d870151b6da1bedc2681014c39cdf8129585",
      "tree_id": "048156ce21ba63d94362895ebd95ea12f4b6b24a",
      "distinct": true,
      "message": "Ensuring number of replicas is 5",
      "timestamp": "2024-11-08T16:48:04+01:00",
      "url": "https://github.com/fleetqa/webhook-github-test/commit/21c9d870151b6da1bedc2681014c39cdf8129585",
      "author": {
        "name": "fleetqa",
        "email": "fleet.qa.team@gmail.com",
        "username": "fleetqa"
      },
      "committer": {
        "name": "fleetqa",
        "email": "fleet.qa.team@gmail.com",
        "username": "fleetqa"
      },
      "added": [

      ],
      "removed": [

      ],
      "modified": [
        "deployment.yaml"
      ]
    }
  ],
  "head_commit": {
    "id": "21c9d870151b6da1bedc2681014c39cdf8129585",
    "tree_id": "048156ce21ba63d94362895ebd95ea12f4b6b24a",
    "distinct": true,
    "message": "Ensuring number of replicas is 5",
    "timestamp": "2024-11-08T16:48:04+01:00",
    "url": "https://github.com/fleetqa/webhook-github-test/commit/21c9d870151b6da1bedc2681014c39cdf8129585",
    "author": {
      "name": "fleetqa",
      "email": "fleet.qa.team@gmail.com",
      "username": "fleetqa"
    },
    "committer": {
      "name": "fleetqa",
      "email": "fleet.qa.team@gmail.com",
      "username": "fleetqa"
    },
    "added": [

    ],
    "removed": [

    ],
    "modified": [
      "deployment.yaml"
    ]
  }
}

```

</details>


<details>
<summary>Gitjob logs</summary>

```
> k logs -n cattle-fleet-system gitjob-8fb8698c-7j6v9 
2024-11-08T15:46:39Z    INFO    setup   starting config controller
2024-11-08T15:46:39Z    INFO    setup   starting gitops controller
2024-11-08T15:46:39Z    INFO    setup   Setting up webhook listener
2024-11-08T15:46:39Z    INFO    setup   starting gitops status controller
2024-11-08T15:46:39Z    INFO    controller-runtime.metrics      Starting metrics server
I1108 15:46:39.138380       7 reflector.go:305] Starting reflector *v1.Secret (9h18m31.866014466s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:46:39.138405       7 reflector.go:341] Listing and watching *v1.Secret from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
2024-11-08T15:46:39Z    INFO    controller-runtime.metrics      Serving metrics server  {"bindAddress": ":8081", "secure": false}
I1108 15:46:39.185410       7 reflector.go:368] Caches populated for *v1.Secret from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:46:39.238620       7 leaderelection.go:254] attempting to acquire leader lease cattle-fleet-system/fleet-gitops-leader-election-shard...
I1108 15:46:39.248987       7 leaderelection.go:456] lock is held by gitjob-bb4b77d49-8ln8l_ce6d4668-6dcf-483e-a264-4c156fcb793f and has not yet expired
I1108 15:46:39.249008       7 leaderelection.go:263] failed to acquire lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:46:52.508553       7 leaderelection.go:456] lock is held by gitjob-bb4b77d49-8ln8l_ce6d4668-6dcf-483e-a264-4c156fcb793f and has not yet expired
I1108 15:46:52.508574       7 leaderelection.go:263] failed to acquire lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:47:07.323740       7 leaderelection.go:456] lock is held by gitjob-bb4b77d49-8ln8l_ce6d4668-6dcf-483e-a264-4c156fcb793f and has not yet expired
I1108 15:47:07.323760       7 leaderelection.go:263] failed to acquire lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:47:20.884936       7 leaderelection.go:268] successfully acquired lease cattle-fleet-system/fleet-gitops-leader-election-shard
2024-11-08T15:47:20Z    DEBUG   events  gitjob-8fb8698c-7j6v9_b0dfb562-e0dc-4fb7-a814-08d2890fe68e became leader        {"type": "Normal", "object": {"kind":"Lease","namespace":"cattle-fleet-system","name":"fleet-gitops-leader-election-shard","uid":"2bae2430-2545-49db-b0a0-e4f3c83449d6","apiVersion":"coordination.k8s.io/v1","resourceVersion":"71609"}, "reason": "LeaderElection"}
2024-11-08T15:47:20Z    INFO    Starting EventSource    {"controller": "configmap", "controllerGroup": "", "controllerKind": "ConfigMap", "source": "kind source: *v1.ConfigMap"}
2024-11-08T15:47:20Z    INFO    Starting Controller     {"controller": "configmap", "controllerGroup": "", "controllerKind": "ConfigMap"}
2024-11-08T15:47:20Z    INFO    Starting EventSource    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "source": "kind source: *v1alpha1.GitRepo"}
2024-11-08T15:47:20Z    INFO    Starting EventSource    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "source": "kind source: *v1alpha1.Bundle"}
2024-11-08T15:47:20Z    INFO    Starting Controller     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo"}
I1108 15:47:20.886444       7 reflector.go:305] Starting reflector *v1.ConfigMap (9h47m42.23980476s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.886457       7 reflector.go:341] Listing and watching *v1.ConfigMap from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
2024-11-08T15:47:20Z    INFO    Starting EventSource    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "source": "kind source: *v1alpha1.GitRepo"}
2024-11-08T15:47:20Z    INFO    Starting EventSource    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "source": "kind source: *v1.Job"}
2024-11-08T15:47:20Z    INFO    Starting Controller     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo"}
I1108 15:47:20.889469       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:47:20.892273       7 reflector.go:305] Starting reflector *v1alpha1.Bundle (9h37m23.644919753s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.892294       7 reflector.go:341] Listing and watching *v1alpha1.Bundle from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.895024       7 reflector.go:305] Starting reflector *v1.Job (9h8m17.235999587s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.895035       7 reflector.go:305] Starting reflector *v1alpha1.GitRepo (10h20m35.693545001s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.895049       7 reflector.go:341] Listing and watching *v1alpha1.GitRepo from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.895041       7 reflector.go:341] Listing and watching *v1.Job from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.896866       7 reflector.go:368] Caches populated for *v1.Job from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.897748       7 reflector.go:368] Caches populated for *v1alpha1.GitRepo from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.898042       7 reflector.go:368] Caches populated for *v1.ConfigMap from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.898668       7 reflector.go:368] Caches populated for *v1alpha1.Bundle from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
2024-11-08T15:47:20Z    INFO    Starting workers        {"controller": "configmap", "controllerGroup": "", "controllerKind": "ConfigMap", "worker count": 1}
2024-11-08T15:47:20Z    LEVEL(-5)       Reconciling     {"controller": "configmap", "controllerGroup": "", "controllerKind": "ConfigMap", "ConfigMap": {"name":"fleet-controller","namespace":"cattle-fleet-system"}, "namespace": "cattle-fleet-system", "name": "fleet-controller", "reconcileID": "46dacd44-d485-4bb7-9d3f-cdfa498bb100"}
2024-11-08T15:47:20Z    DEBUG   config  Reconciling config configmap, loading config    {"controller": "configmap", "controllerGroup": "", "controllerKind": "ConfigMap", "ConfigMap": {"name":"fleet-controller","namespace":"cattle-fleet-system"}, "namespace": "cattle-fleet-system", "name": "fleet-controller", "reconcileID": "46dacd44-d485-4bb7-9d3f-cdfa498bb100"}
2024-11-08T15:47:20Z    LEVEL(-5)       Reconcile successful    {"controller": "configmap", "controllerGroup": "", "controllerKind": "ConfigMap", "ConfigMap": {"name":"fleet-controller","namespace":"cattle-fleet-system"}, "namespace": "cattle-fleet-system", "name": "fleet-controller", "reconcileID": "46dacd44-d485-4bb7-9d3f-cdfa498bb100"}
2024-11-08T15:47:20Z    INFO    Starting workers        {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "worker count": 50}
2024-11-08T15:47:20Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "d21f8101-13cd-4073-9789-ce2cff8c8173"}
I1108 15:47:20.995490       7 reflector.go:305] Starting reflector *v1alpha1.GitRepoRestriction (10h48m44.489980375s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.995515       7 reflector.go:341] Listing and watching *v1alpha1.GitRepoRestriction from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:20.997235       7 reflector.go:368] Caches populated for *v1alpha1.GitRepoRestriction from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
2024-11-08T15:47:21Z    INFO    Starting workers        {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "worker count": 50}
2024-11-08T15:47:21Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "d21f8101-13cd-4073-9789-ce2cff8c8173", "generation": 2, "commit": "d171da135fd78d0712ff7a78082e57e9e84725b6", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "fbc29bc5-06fb-4c27-aa41-b1525bced033"}
2024-11-08T15:47:21Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "fbc29bc5-06fb-4c27-aa41-b1525bced033", "generation": 2, "commit": "d171da135fd78d0712ff7a78082e57e9e84725b6", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
I1108 15:47:21.097219       7 reflector.go:305] Starting reflector *v1alpha1.BundleDeployment (10h12m50.059150801s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:21.097240       7 reflector.go:341] Listing and watching *v1alpha1.BundleDeployment from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:21.100943       7 reflector.go:368] Caches populated for *v1alpha1.BundleDeployment from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
2024-11-08T15:47:21Z    DEBUG   gitjob  Creating Git job resources      {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "fbc29bc5-06fb-4c27-aa41-b1525bced033", "generation": 2, "commit": "d171da135fd78d0712ff7a78082e57e9e84725b6", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "d21f8101-13cd-4073-9789-ce2cff8c8173"}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8c41f8cc-7500-4a32-b51f-ba2a1bb64fe3"}
2024-11-08T15:47:21Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8c41f8cc-7500-4a32-b51f-ba2a1bb64fe3", "generation": 2, "commit": "d171da135fd78d0712ff7a78082e57e9e84725b6", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8c41f8cc-7500-4a32-b51f-ba2a1bb64fe3"}
2024-11-08T15:47:21Z    DEBUG   events  GitJob was created      {"type": "Normal", "object": {"kind":"GitRepo","namespace":"fleet-local","name":"webhook-test-disable-polling","uid":"5d3f5e62-5b26-42f2-ba53-9cc0b3488604","apiVersion":"fleet.cattle.io/v1alpha1","resourceVersion":"70438"}, "reason": "Created"}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "fbc29bc5-06fb-4c27-aa41-b1525bced033"}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "144f21b3-add4-43bb-9aec-b9a9f700f226"}
2024-11-08T15:47:21Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "144f21b3-add4-43bb-9aec-b9a9f700f226", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2a06d45a-0196-488d-b43a-0f38e233ac0b"}
2024-11-08T15:47:21Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2a06d45a-0196-488d-b43a-0f38e233ac0b", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2a06d45a-0196-488d-b43a-0f38e233ac0b"}
2024-11-08T15:47:21Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "144f21b3-add4-43bb-9aec-b9a9f700f226"}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "44b8631b-24e2-44b5-9098-91569d71bf93"}
2024-11-08T15:47:22Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "44b8631b-24e2-44b5-9098-91569d71bf93", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:40:44Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "44b8631b-24e2-44b5-9098-91569d71bf93"}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "dddeebb1-08f2-4c6a-90e9-5a90055486ae"}
2024-11-08T15:47:22Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "dddeebb1-08f2-4c6a-90e9-5a90055486ae", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:22Z","message":"WaitApplied(1) [Bundle webhook-test-disable-polling]"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "dddeebb1-08f2-4c6a-90e9-5a90055486ae"}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a57b79c4-1a36-4e66-9f61-b9014d28f937"}
2024-11-08T15:47:22Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a57b79c4-1a36-4e66-9f61-b9014d28f937", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:22Z","message":"WaitApplied(1) [Bundle webhook-test-disable-polling]"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a57b79c4-1a36-4e66-9f61-b9014d28f937"}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "e1c13336-465b-411e-93d3-3e3cc7fe4ce1"}
2024-11-08T15:47:22Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "e1c13336-465b-411e-93d3-3e3cc7fe4ce1", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:22Z","message":"WaitApplied(1) [Bundle webhook-test-disable-polling]"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "e1c13336-465b-411e-93d3-3e3cc7fe4ce1"}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "5804614c-2060-4a74-af4c-647ada40939b"}
2024-11-08T15:47:22Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "5804614c-2060-4a74-af4c-647ada40939b", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:22Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Deployment does not have minimum availability., Replicas: 2/5"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:22Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "5804614c-2060-4a74-af4c-647ada40939b"}
2024-11-08T15:47:24Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8ff97e46-1c3c-426c-aa1a-c6c890d5da24"}
2024-11-08T15:47:24Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8ff97e46-1c3c-426c-aa1a-c6c890d5da24", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:22Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Deployment does not have minimum availability., Replicas: 2/5"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:24Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8ff97e46-1c3c-426c-aa1a-c6c890d5da24"}
2024-11-08T15:47:24Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a3e08066-364a-4f56-b795-abe7f6412956"}
2024-11-08T15:47:24Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a3e08066-364a-4f56-b795-abe7f6412956", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:24Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:24Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a3e08066-364a-4f56-b795-abe7f6412956"}
2024-11-08T15:47:25Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "45f697c7-0788-46c8-8631-651273b4e88b"}
2024-11-08T15:47:25Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "45f697c7-0788-46c8-8631-651273b4e88b", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:24Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:25Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "45f697c7-0788-46c8-8631-651273b4e88b"}
2024-11-08T15:47:25Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "908669ef-a08f-43ff-90ea-d3208cb6e8ad"}
2024-11-08T15:47:25Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "908669ef-a08f-43ff-90ea-d3208cb6e8ad", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:24Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:25Z    INFO    gitjob  job deletion triggered because job succeeded    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "908669ef-a08f-43ff-90ea-d3208cb6e8ad", "generation": 2, "commit": "f8d3293dcd521eca88fc2b2e51e873b668a4f4ae", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:24Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:40:42Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:40:42Z"}]}
2024-11-08T15:47:25Z    DEBUG   events  job deletion triggered because job succeeded    {"type": "Normal", "object": {"kind":"GitRepo","namespace":"fleet-local","name":"webhook-test-disable-polling","uid":"5d3f5e62-5b26-42f2-ba53-9cc0b3488604","apiVersion":"fleet.cattle.io/v1alpha1","resourceVersion":"71718"}, "reason": "JobDeleted"}
2024-11-08T15:47:25Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "908669ef-a08f-43ff-90ea-d3208cb6e8ad"}
I1108 15:47:30.894262       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:47:40.899549       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
2024-11-08T15:47:48Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "f448a1ce-806c-4838-87a6-cf9c2ade652b"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "55cff2f9-d2c0-4787-a726-6b21523a56d6"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "f448a1ce-806c-4838-87a6-cf9c2ade652b"}
2024-11-08T15:47:48Z    INFO    gitjob  Gitrepo deleted, deleting bundle, image scans   {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "55cff2f9-d2c0-4787-a726-6b21523a56d6"}
I1108 15:47:48.182835       7 reflector.go:305] Starting reflector *v1alpha1.ImageScan (10h32m0.000253617s) from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:48.182862       7 reflector.go:341] Listing and watching *v1alpha1.ImageScan from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
I1108 15:47:48.184078       7 reflector.go:368] Caches populated for *v1alpha1.ImageScan from pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243
2024-11-08T15:47:48Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "3aeb7a53-1393-4336-aec1-f7bb4c4b8a4f"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "3aeb7a53-1393-4336-aec1-f7bb4c4b8a4f"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "55cff2f9-d2c0-4787-a726-6b21523a56d6"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "80f2c1c9-c82e-436a-a664-9eed20e91c6a"}
2024-11-08T15:47:48Z    DEBUG   gitjob  Gitrepo deleted, cleaning up poll jobs  {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "80f2c1c9-c82e-436a-a664-9eed20e91c6a"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "64f75919-716e-4681-afa3-77507d2af13c"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "80f2c1c9-c82e-436a-a664-9eed20e91c6a"}
2024-11-08T15:47:48Z    DEBUG   gitops-status   Gitrepo deleted, cleaning up poll jobs  {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "64f75919-716e-4681-afa3-77507d2af13c"}
2024-11-08T15:47:48Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "64f75919-716e-4681-afa3-77507d2af13c"}
I1108 15:47:50.904246       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
2024-11-08T15:47:52Z    DEBUG   webhook Webhook payload {"payload": {"ref":"refs/heads/main","before":"f8d3293dcd521eca88fc2b2e51e873b668a4f4ae","after":"ded1afcfdd8f0c0b4bddb242e0c75b374e189224","created":false,"deleted":false,"forced":false,"base_ref":null,"compare":"https://github.com/fleetqa/webhook-github-test/compare/f8d3293dcd52...ded1afcfdd8f","commits":[{"sha":"","id":"ded1afcfdd8f0c0b4bddb242e0c75b374e189224","node_id":"","tree_id":"a8c4b1099c9e422fbdc1fe170309bf90c9f03233","distinct":true,"message":"Ensuring initial number of replicas is 2","timestamp":"2024-11-08T16:47:50+01:00","url":"https://github.com/fleetqa/webhook-github-test/commit/ded1afcfdd8f0c0b4bddb242e0c75b374e189224","author":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"committer":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"added":[],"removed":[],"modified":["deployment.yaml"]}],"head_commit":{"id":"ded1afcfdd8f0c0b4bddb242e0c75b374e189224","node_id":"","tree_id":"a8c4b1099c9e422fbdc1fe170309bf90c9f03233","distinct":true,"message":"Ensuring initial number of replicas is 2","timestamp":"2024-11-08T16:47:50+01:00","url":"https://github.com/fleetqa/webhook-github-test/commit/ded1afcfdd8f0c0b4bddb242e0c75b374e189224","author":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"committer":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"added":[],"removed":[],"modified":["deployment.yaml"]},"repository":{"id":836697933,"node_id":"R_kgDOMd7_TQ","name":"webhook-github-test","full_name":"fleetqa/webhook-github-test","owner":{"login":"fleetqa","id":166113384,"node_id":"U_kgDOCeawaA","avatar_url":"https://avatars.githubusercontent.com/u/166113384?v=4","gravatar_id":"","url":"https://api.github.com/users/fleetqa","html_url":"https://github.com/fleetqa","followers_url":"https://api.github.com/users/fleetqa/followers","following_url":"https://api.github.com/users/fleetqa/following{/other_user}","gists_url":"https://api.github.com/users/fleetqa/gists{/gist_id}","starred_url":"https://api.github.com/users/fleetqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleetqa/subscriptions","organizations_url":"https://api.github.com/users/fleetqa/orgs","repos_url":"https://api.github.com/users/fleetqa/repos","events_url":"https://api.github.com/users/fleetqa/events{/privacy}","received_events_url":"https://api.github.com/users/fleetqa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fleetqa/webhook-github-test","description":"","fork":false,"url":"https://github.com/fleetqa/webhook-github-test","forks_url":"https://api.github.com/repos/fleetqa/webhook-github-test/forks","keys_url":"https://api.github.com/repos/fleetqa/webhook-github-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fleetqa/webhook-github-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fleetqa/webhook-github-test/teams","hooks_url":"https://api.github.com/repos/fleetqa/webhook-github-test/hooks","issue_events_url":"https://api.github.com/repos/fleetqa/webhook-github-test/issues/events{/number}","events_url":"https://api.github.com/repos/fleetqa/webhook-github-test/events","assignees_url":"https://api.github.com/repos/fleetqa/webhook-github-test/assignees{/user}","branches_url":"https://api.github.com/repos/fleetqa/webhook-github-test/branches{/branch}","tags_url":"https://api.github.com/repos/fleetqa/webhook-github-test/tags","blobs_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fleetqa/webhook-github-test/statuses/{sha}","languages_url":"https://api.github.com/repos/fleetqa/webhook-github-test/languages","stargazers_url":"https://api.github.com/repos/fleetqa/webhook-github-test/stargazers","contributors_url":"https://api.github.com/repos/fleetqa/webhook-github-test/contributors","subscribers_url":"https://api.github.com/repos/fleetqa/webhook-github-test/subscribers","subscription_url":"https://api.github.com/repos/fleetqa/webhook-github-test/subscription","commits_url":"https://api.github.com/repos/fleetqa/webhook-github-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/fleetqa/webhook-github-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/fleetqa/webhook-github-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/fleetqa/webhook-github-test/contents/{+path}","compare_url":"https://api.github.com/repos/fleetqa/webhook-github-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fleetqa/webhook-github-test/merges","archive_url":"https://api.github.com/repos/fleetqa/webhook-github-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fleetqa/webhook-github-test/downloads","issues_url":"https://api.github.com/repos/fleetqa/webhook-github-test/issues{/number}","pulls_url":"https://api.github.com/repos/fleetqa/webhook-github-test/pulls{/number}","milestones_url":"https://api.github.com/repos/fleetqa/webhook-github-test/milestones{/number}","notifications_url":"https://api.github.com/repos/fleetqa/webhook-github-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fleetqa/webhook-github-test/labels{/name}","releases_url":"https://api.github.com/repos/fleetqa/webhook-github-test/releases{/id}","created_at":1722511363,"updated_at":"2024-11-08T15:40:56Z","pushed_at":1731080871,"git_url":"git://github.com/fleetqa/webhook-github-test.git","ssh_url":"git@github.com:fleetqa/webhook-github-test.git","clone_url":"https://github.com/fleetqa/webhook-github-test.git","svn_url":"https://github.com/fleetqa/webhook-github-test","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"main","stargazers":0,"master_branch":"main"},"pusher":{"name":"fleetqa","email":"166113384+fleetqa@users.noreply.github.com"},"sender":{"login":"fleetqa","id":166113384,"node_id":"U_kgDOCeawaA","avatar_url":"https://avatars.githubusercontent.com/u/166113384?v=4","gravatar_id":"","url":"https://api.github.com/users/fleetqa","html_url":"https://github.com/fleetqa","followers_url":"https://api.github.com/users/fleetqa/followers","following_url":"https://api.github.com/users/fleetqa/following{/other_user}","gists_url":"https://api.github.com/users/fleetqa/gists{/gist_id}","starred_url":"https://api.github.com/users/fleetqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleetqa/subscriptions","organizations_url":"https://api.github.com/users/fleetqa/orgs","repos_url":"https://api.github.com/users/fleetqa/repos","events_url":"https://api.github.com/users/fleetqa/events{/privacy}","received_events_url":"https://api.github.com/users/fleetqa/received_events","type":"User","site_admin":false},"installation":{"id":0}}}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "704ee5c6-d1c7-4e26-b925-32889ac049d9"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2e2b2eb5-0835-4a42-9481-f791e3eae299"}
2024-11-08T15:47:53Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2e2b2eb5-0835-4a42-9481-f791e3eae299", "generation": 1, "commit": "", "conditions": null}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile done, requeueing      {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "704ee5c6-d1c7-4e26-b925-32889ac049d9"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ea023f9b-58d4-465d-b97c-1449a182dd2b"}
2024-11-08T15:47:53Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ea023f9b-58d4-465d-b97c-1449a182dd2b", "generation": 2, "commit": "", "conditions": null}
2024-11-08T15:47:53Z    ERROR   gitops-status   Reconcile failed update to git repo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2e2b2eb5-0835-4a42-9481-f791e3eae299", "generation": 1, "commit": "", "conditions": null, "status": {"observedGeneration":0,"readyClusters":0,"desiredReadyClusters":0,"summary":{"ready":0,"desiredReady":0},"display":{"readyBundleDeployments":"0/0","state":"GitUpdating"},"conditions":[{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}],"resourceCounts":{"ready":0,"desiredReady":0,"waitApplied":0,"modified":0,"orphaned":0,"missing":0,"unknown":0,"notReady":0},"lastSyncedImageScanTime":null,"lastPollingTriggered":null}, "error": "Operation cannot be fulfilled on gitrepos.fleet.cattle.io \"webhook-test-disable-polling\": the object has been modified; please apply your changes to the latest version and try again"}
github.com/rancher/fleet/internal/cmd/controller/gitops/reconciler.(*StatusReconciler).Reconcile
        /home/runner/_work/fleet/fleet/internal/cmd/controller/gitops/reconciler/status_controller.go:116
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:116
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:303
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:263
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:224
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile done, requeueing after 5s     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "2e2b2eb5-0835-4a42-9481-f791e3eae299"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ffb50131-144d-469e-ba3d-7d5026e80422"}
2024-11-08T15:47:53Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ffb50131-144d-469e-ba3d-7d5026e80422", "generation": 2, "commit": "", "conditions": null}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ffb50131-144d-469e-ba3d-7d5026e80422"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "24d1a66c-c5e3-4f73-bd54-017bb61a2f5f"}
2024-11-08T15:47:53Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "24d1a66c-c5e3-4f73-bd54-017bb61a2f5f", "generation": 2, "commit": "", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "24d1a66c-c5e3-4f73-bd54-017bb61a2f5f"}
2024-11-08T15:47:53Z    DEBUG   gitjob  Creating Git job resources      {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ea023f9b-58d4-465d-b97c-1449a182dd2b", "generation": 2, "commit": "", "conditions": null}
2024-11-08T15:47:53Z    DEBUG   events  GitJob was created      {"type": "Normal", "object": {"kind":"GitRepo","namespace":"fleet-local","name":"webhook-test-disable-polling","uid":"72fe4005-6971-4121-a94c-3f199da4b7c2","apiVersion":"fleet.cattle.io/v1alpha1","resourceVersion":"71865"}, "reason": "Created"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ea023f9b-58d4-465d-b97c-1449a182dd2b"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a30dd03f-adb7-442e-b2e5-92443b090598"}
2024-11-08T15:47:53Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a30dd03f-adb7-442e-b2e5-92443b090598", "generation": 2, "commit": "", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "072628a2-a1e3-481c-b350-d9619533d507"}
2024-11-08T15:47:53Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "072628a2-a1e3-481c-b350-d9619533d507", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "072628a2-a1e3-481c-b350-d9619533d507"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "6cebfd6e-e710-49d5-9416-04f6e9ab308b"}
2024-11-08T15:47:53Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "6cebfd6e-e710-49d5-9416-04f6e9ab308b", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    DEBUG   gitjob  Creating Git job resources      {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a30dd03f-adb7-442e-b2e5-92443b090598", "generation": 2, "commit": "", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "6cebfd6e-e710-49d5-9416-04f6e9ab308b"}
2024-11-08T15:47:53Z    ERROR   Reconciler error        {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "a30dd03f-adb7-442e-b2e5-92443b090598", "error": "error creating git job: jobs.batch \"webhook-test-disable-polling-182b0\" already exists"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:316
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:263
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:224
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "450de2c2-075d-436d-8220-169d2c7e3cd7"}
2024-11-08T15:47:53Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "450de2c2-075d-436d-8220-169d2c7e3cd7", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "450de2c2-075d-436d-8220-169d2c7e3cd7"}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "361600b2-671c-4108-b8b3-7c4b2dd893d3"}
2024-11-08T15:47:53Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "361600b2-671c-4108-b8b3-7c4b2dd893d3", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:53Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "361600b2-671c-4108-b8b3-7c4b2dd893d3"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "036351e0-5562-4e95-a961-81e8b9c45133"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "036351e0-5562-4e95-a961-81e8b9c45133", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "036351e0-5562-4e95-a961-81e8b9c45133"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8ae0d9a0-12e6-43e3-b8ac-c826066ae055"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8ae0d9a0-12e6-43e3-b8ac-c826066ae055", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8ae0d9a0-12e6-43e3-b8ac-c826066ae055"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "607bcba4-c265-44aa-9037-406ab89fd3bf"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "607bcba4-c265-44aa-9037-406ab89fd3bf", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    ERROR   gitops-status   Reconcile failed update to git repo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "607bcba4-c265-44aa-9037-406ab89fd3bf", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}], "status": {"observedGeneration":2,"commit":"ded1afcfdd8f0c0b4bddb242e0c75b374e189224","readyClusters":0,"desiredReadyClusters":1,"gitJobStatus":"Current","summary":{"waitApplied":1,"ready":0,"desiredReady":1,"nonReadyResources":[{"name":"webhook-test-disable-polling","bundleState":"WaitApplied"}]},"display":{"readyBundleDeployments":"0/1","state":"WaitApplied"},"conditions":[{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"WaitApplied(1) [Bundle webhook-test-disable-polling]"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}],"resourceCounts":{"ready":0,"desiredReady":0,"waitApplied":0,"modified":0,"orphaned":0,"missing":0,"unknown":0,"notReady":0},"lastSyncedImageScanTime":null,"lastPollingTriggered":null}, "error": "Operation cannot be fulfilled on gitrepos.fleet.cattle.io \"webhook-test-disable-polling\": the object has been modified; please apply your changes to the latest version and try again"}
github.com/rancher/fleet/internal/cmd/controller/gitops/reconciler.(*StatusReconciler).Reconcile
        /home/runner/_work/fleet/fleet/internal/cmd/controller/gitops/reconciler/status_controller.go:116
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:116
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:303
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:263
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:224
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile done, requeueing after 5s     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "607bcba4-c265-44aa-9037-406ab89fd3bf"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "0c619c7d-01d1-4b00-9ade-a7cf740e44a2"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "0c619c7d-01d1-4b00-9ade-a7cf740e44a2", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"WaitApplied(1) [Bundle webhook-test-disable-polling]"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "0c619c7d-01d1-4b00-9ade-a7cf740e44a2"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ffa41a13-600d-41d6-8db9-4cd1ea89447d"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ffa41a13-600d-41d6-8db9-4cd1ea89447d", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"WaitApplied(1) [Bundle webhook-test-disable-polling]"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "ffa41a13-600d-41d6-8db9-4cd1ea89447d"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "e6b472b6-a729-4144-873a-a265c6ba39d8"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "e6b472b6-a729-4144-873a-a265c6ba39d8", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Replicas: 0/2"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "e6b472b6-a729-4144-873a-a265c6ba39d8"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "d87bb1e0-6e58-4e8e-ba12-f366b5335b2c"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "d87bb1e0-6e58-4e8e-ba12-f366b5335b2c", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Replicas: 0/2"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "d87bb1e0-6e58-4e8e-ba12-f366b5335b2c"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "1bac6dd6-fbe1-4911-8461-af81d94e9232"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "1bac6dd6-fbe1-4911-8461-af81d94e9232", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Deployment does not have minimum availability., Replicas: 0/2"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "1bac6dd6-fbe1-4911-8461-af81d94e9232"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "03055e73-b46b-43aa-9ac2-454381e89c89"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "03055e73-b46b-43aa-9ac2-454381e89c89", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Deployment does not have minimum availability., Replicas: 0/2"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "03055e73-b46b-43aa-9ac2-454381e89c89"}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "b7d757de-42fd-4e83-b4c6-37df6e8723c7"}
2024-11-08T15:47:55Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "b7d757de-42fd-4e83-b4c6-37df6e8723c7", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Deployment does not have minimum availability., Available: 0/2"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:55Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "b7d757de-42fd-4e83-b4c6-37df6e8723c7"}
2024-11-08T15:47:56Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "40f3e929-a9c3-4de6-a2c1-8012a0ba4dfe"}
2024-11-08T15:47:56Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "40f3e929-a9c3-4de6-a2c1-8012a0ba4dfe", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"False","lastUpdateTime":"2024-11-08T15:47:55Z","message":"NotReady(1) [Bundle webhook-test-disable-polling]; deployment.apps default/webhook-test-disable-polling [progressing] Deployment does not have minimum availability., Available: 0/2"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:56Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "40f3e929-a9c3-4de6-a2c1-8012a0ba4dfe"}
2024-11-08T15:47:56Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "42fd0fff-8165-4dbf-8c8e-485c4d75bf9a"}
2024-11-08T15:47:56Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "42fd0fff-8165-4dbf-8c8e-485c4d75bf9a", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:56Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "42fd0fff-8165-4dbf-8c8e-485c4d75bf9a"}
2024-11-08T15:47:58Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "406a362f-e190-41b3-a3a3-e065513ea236"}
2024-11-08T15:47:58Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "406a362f-e190-41b3-a3a3-e065513ea236", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:58Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8b5b7a98-cdce-4831-a223-a9ee8eab13ad"}
2024-11-08T15:47:58Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8b5b7a98-cdce-4831-a223-a9ee8eab13ad", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:58Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "406a362f-e190-41b3-a3a3-e065513ea236"}
2024-11-08T15:47:58Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "4ad6ee5f-ca6a-4558-802e-435ddf72d305"}
2024-11-08T15:47:58Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "4ad6ee5f-ca6a-4558-802e-435ddf72d305", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:58Z    INFO    gitjob  job deletion triggered because job succeeded    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "4ad6ee5f-ca6a-4558-802e-435ddf72d305", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:47:58Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "8b5b7a98-cdce-4831-a223-a9ee8eab13ad"}
2024-11-08T15:47:58Z    DEBUG   events  job deletion triggered because job succeeded    {"type": "Normal", "object": {"kind":"GitRepo","namespace":"fleet-local","name":"webhook-test-disable-polling","uid":"72fe4005-6971-4121-a94c-3f199da4b7c2","apiVersion":"fleet.cattle.io/v1alpha1","resourceVersion":"71962"}, "reason": "JobDeleted"}
2024-11-08T15:47:58Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "4ad6ee5f-ca6a-4558-802e-435ddf72d305"}
I1108 15:48:00.908264       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
2024-11-08T15:48:06Z    DEBUG   webhook Webhook payload {"payload": {"ref":"refs/heads/main","before":"ded1afcfdd8f0c0b4bddb242e0c75b374e189224","after":"21c9d870151b6da1bedc2681014c39cdf8129585","created":false,"deleted":false,"forced":false,"base_ref":null,"compare":"https://github.com/fleetqa/webhook-github-test/compare/ded1afcfdd8f...21c9d870151b","commits":[{"sha":"","id":"21c9d870151b6da1bedc2681014c39cdf8129585","node_id":"","tree_id":"048156ce21ba63d94362895ebd95ea12f4b6b24a","distinct":true,"message":"Ensuring number of replicas is 5","timestamp":"2024-11-08T16:48:04+01:00","url":"https://github.com/fleetqa/webhook-github-test/commit/21c9d870151b6da1bedc2681014c39cdf8129585","author":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"committer":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"added":[],"removed":[],"modified":["deployment.yaml"]}],"head_commit":{"id":"21c9d870151b6da1bedc2681014c39cdf8129585","node_id":"","tree_id":"048156ce21ba63d94362895ebd95ea12f4b6b24a","distinct":true,"message":"Ensuring number of replicas is 5","timestamp":"2024-11-08T16:48:04+01:00","url":"https://github.com/fleetqa/webhook-github-test/commit/21c9d870151b6da1bedc2681014c39cdf8129585","author":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"committer":{"name":"fleetqa","email":"fleet.qa.team@gmail.com","username":"fleetqa"},"added":[],"removed":[],"modified":["deployment.yaml"]},"repository":{"id":836697933,"node_id":"R_kgDOMd7_TQ","name":"webhook-github-test","full_name":"fleetqa/webhook-github-test","owner":{"login":"fleetqa","id":166113384,"node_id":"U_kgDOCeawaA","avatar_url":"https://avatars.githubusercontent.com/u/166113384?v=4","gravatar_id":"","url":"https://api.github.com/users/fleetqa","html_url":"https://github.com/fleetqa","followers_url":"https://api.github.com/users/fleetqa/followers","following_url":"https://api.github.com/users/fleetqa/following{/other_user}","gists_url":"https://api.github.com/users/fleetqa/gists{/gist_id}","starred_url":"https://api.github.com/users/fleetqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleetqa/subscriptions","organizations_url":"https://api.github.com/users/fleetqa/orgs","repos_url":"https://api.github.com/users/fleetqa/repos","events_url":"https://api.github.com/users/fleetqa/events{/privacy}","received_events_url":"https://api.github.com/users/fleetqa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fleetqa/webhook-github-test","description":"","fork":false,"url":"https://github.com/fleetqa/webhook-github-test","forks_url":"https://api.github.com/repos/fleetqa/webhook-github-test/forks","keys_url":"https://api.github.com/repos/fleetqa/webhook-github-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fleetqa/webhook-github-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fleetqa/webhook-github-test/teams","hooks_url":"https://api.github.com/repos/fleetqa/webhook-github-test/hooks","issue_events_url":"https://api.github.com/repos/fleetqa/webhook-github-test/issues/events{/number}","events_url":"https://api.github.com/repos/fleetqa/webhook-github-test/events","assignees_url":"https://api.github.com/repos/fleetqa/webhook-github-test/assignees{/user}","branches_url":"https://api.github.com/repos/fleetqa/webhook-github-test/branches{/branch}","tags_url":"https://api.github.com/repos/fleetqa/webhook-github-test/tags","blobs_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fleetqa/webhook-github-test/statuses/{sha}","languages_url":"https://api.github.com/repos/fleetqa/webhook-github-test/languages","stargazers_url":"https://api.github.com/repos/fleetqa/webhook-github-test/stargazers","contributors_url":"https://api.github.com/repos/fleetqa/webhook-github-test/contributors","subscribers_url":"https://api.github.com/repos/fleetqa/webhook-github-test/subscribers","subscription_url":"https://api.github.com/repos/fleetqa/webhook-github-test/subscription","commits_url":"https://api.github.com/repos/fleetqa/webhook-github-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/fleetqa/webhook-github-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/fleetqa/webhook-github-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/fleetqa/webhook-github-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/fleetqa/webhook-github-test/contents/{+path}","compare_url":"https://api.github.com/repos/fleetqa/webhook-github-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fleetqa/webhook-github-test/merges","archive_url":"https://api.github.com/repos/fleetqa/webhook-github-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fleetqa/webhook-github-test/downloads","issues_url":"https://api.github.com/repos/fleetqa/webhook-github-test/issues{/number}","pulls_url":"https://api.github.com/repos/fleetqa/webhook-github-test/pulls{/number}","milestones_url":"https://api.github.com/repos/fleetqa/webhook-github-test/milestones{/number}","notifications_url":"https://api.github.com/repos/fleetqa/webhook-github-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fleetqa/webhook-github-test/labels{/name}","releases_url":"https://api.github.com/repos/fleetqa/webhook-github-test/releases{/id}","created_at":1722511363,"updated_at":"2024-11-08T15:47:55Z","pushed_at":1731080885,"git_url":"git://github.com/fleetqa/webhook-github-test.git","ssh_url":"git@github.com:fleetqa/webhook-github-test.git","clone_url":"https://github.com/fleetqa/webhook-github-test.git","svn_url":"https://github.com/fleetqa/webhook-github-test","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"main","stargazers":0,"master_branch":"main"},"pusher":{"name":"fleetqa","email":"166113384+fleetqa@users.noreply.github.com"},"sender":{"login":"fleetqa","id":166113384,"node_id":"U_kgDOCeawaA","avatar_url":"https://avatars.githubusercontent.com/u/166113384?v=4","gravatar_id":"","url":"https://api.github.com/users/fleetqa","html_url":"https://github.com/fleetqa","followers_url":"https://api.github.com/users/fleetqa/followers","following_url":"https://api.github.com/users/fleetqa/following{/other_user}","gists_url":"https://api.github.com/users/fleetqa/gists{/gist_id}","starred_url":"https://api.github.com/users/fleetqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleetqa/subscriptions","organizations_url":"https://api.github.com/users/fleetqa/orgs","repos_url":"https://api.github.com/users/fleetqa/repos","events_url":"https://api.github.com/users/fleetqa/events{/privacy}","received_events_url":"https://api.github.com/users/fleetqa/received_events","type":"User","site_admin":false},"installation":{"id":0}}}
2024-11-08T15:48:06Z    LEVEL(-5)       Reconciling     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "504ad7d4-9da2-42b8-a299-972b7b10bdbc"}
2024-11-08T15:48:06Z    LEVEL(-5)       Reconciling     {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "41cc6043-28dd-440e-93fa-db7cff536139"}
2024-11-08T15:48:06Z    DEBUG   gitjob  Reconciling GitRepo     {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "504ad7d4-9da2-42b8-a299-972b7b10bdbc", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:48:06Z    DEBUG   gitops-status   Reconciling GitRepo status      {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "41cc6043-28dd-440e-93fa-db7cff536139", "generation": 2, "commit": "ded1afcfdd8f0c0b4bddb242e0c75b374e189224", "conditions": [{"type":"Ready","status":"True","lastUpdateTime":"2024-11-08T15:47:56Z"},{"type":"GitPolling","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Reconciling","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Stalled","status":"False","lastUpdateTime":"2024-11-08T15:47:53Z"},{"type":"Accepted","status":"True","lastUpdateTime":"2024-11-08T15:47:53Z"}]}
2024-11-08T15:48:06Z    LEVEL(-5)       Reconcile successful    {"controller": "GitRepoStatus", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "41cc6043-28dd-440e-93fa-db7cff536139"}
2024-11-08T15:48:06Z    LEVEL(-5)       Reconcile successful    {"controller": "gitrepo", "controllerGroup": "fleet.cattle.io", "controllerKind": "GitRepo", "GitRepo": {"name":"webhook-test-disable-polling","namespace":"fleet-local"}, "namespace": "fleet-local", "name": "webhook-test-disable-polling", "reconcileID": "504ad7d4-9da2-42b8-a299-972b7b10bdbc"}
I1108 15:48:10.912639       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:48:20.917861       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:48:30.922792       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:48:40.927492       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:48:50.932228       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:49:00.937038       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:49:10.941410       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:49:20.946139       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:49:30.950634       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard
I1108 15:49:40.955073       7 leaderelection.go:293] successfully renewed lease cattle-fleet-system/fleet-gitops-leader-election-shard

</details>

### Test environment
Rancher 2.10-head with 	`fleet:105.0.0+up0.11.0-rc.2`


Hints from issue comments:
@manno: Waiting for further fixes to the gitops  controller@mmartin24: 
Verified in Rancher `v2.11-94853c35bd1e02cf8aa114be4016bc3699288c6a-head` with `Fleet 0.12.0-beta.1`

---

Tested multiple times and working well.
Automated test [Fleet-152: Test Fleet with Webhook and disable polling ](https://github.com/rancher/fleet-e2e/actions/runs/13826564441/job/38688108931#step:9:330) also verifying fix.

### Verified

 On the previously exposed examples replicas change from 2 to 5 instantly and it does not hang. I repeated this several times. This can be seen in screenshot with commit hash `cd272b5e8ac96ea4922db9e4c6ecdac15241fdc0` found both in the repo and from github using webhook in the UI:

![Image](https://github.com/user-attachments/assets/6db85697-b58f-4a5e-ba9f-f71e4d57a5c4)


Webhook commit same `cd272b5e8ac96ea4922db9e4c6ecdac15241fdc0`

![Image](https://github.com/user-attachments/assets/a7a7313f-fde2-4f64-a7ec-38092babc665)



Solution patch:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c22455f1..f89c1fc6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,7 +22,6 @@ jobs:
 
     env:
       IS_HOTFIX: ${{ contains(github.ref, '-hotfix-') }}
-      REGISTRY: "${{ contains(github.ref, '-hotfix-') && 'stgregistry.suse.com' || 'docker.io' }}"
 
     if: github.repository == 'rancher/fleet'
     steps:
@@ -108,14 +107,6 @@ jobs:
           username: ${{ env.DOCKER_USERNAME }}
           password: ${{ env.DOCKER_PASSWORD }}
 
-      - name: Log into Staging registry
-        uses: docker/login-action@v3
-        if: ${{ env.IS_HOTFIX == 'true' }}
-        with:
-          username: ${{ env.STAGE_REGISTRY_USERNAME }}
-          password: ${{ env.STAGE_REGISTRY_PASSWORD }}
-          registry: ${{ env.REGISTRY }}
-
       - name: Log into Prime registry
         uses: docker/login-action@v3
         with:
@@ -174,6 +165,7 @@ jobs:
           done
 
       - name: Upload charts to release
+        if: ${{ env.IS_HOTFIX == 'false' }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           repo: "rancher"
@@ -198,6 +190,7 @@ jobs:
           find dist/ -name '*.tgz' -exec gh release upload $tag {} +
 
       - name: Add charts to branch
+        if: ${{ env.IS_HOTFIX == 'false' }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 86fd1d3e..4e7d0a32 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -6,7 +6,6 @@ project_name: fleet
 env:
   - CGO_ENABLED=0
   - IS_HOTFIX={{ if isEnvSet "IS_HOTFIX"}}{{ .Env.IS_HOTFIX }}{{else}}false{{end}}
-  - REGISTRY={{ if isEnvSet "REGISTRY" }}{{ .Env.REGISTRY }}{{else}}docker.io{{end}}
 
 release:
   prerelease: auto
@@ -89,6 +88,7 @@ dockers:
   -
     use: buildx
     id: fleet-amd64-public
+    skip_push: "{{ .Env.IS_HOTFIX }}"
 
     # GOOS of the built binaries/packages that should be used.
     goos: linux
@@ -103,7 +103,7 @@ dockers:
 
     # Templates of the Docker image names.
     image_templates:
-    - "{{ .Env.REGISTRY }}/rancher/fleet:{{ .Tag }}-linux-amd64"
+    - "docker.io/rancher/fleet:{{ .Tag }}-linux-amd64"
 
     # Path to the Dockerfile (from the project root).
     dockerfile: package/Dockerfile
@@ -123,13 +123,14 @@ dockers:
   -
     use: buildx
     id: fleet-arm64-public
+    skip_push: "{{ .Env.IS_HOTFIX }}"
     goos: linux
     goarch: arm64
     ids:
     - fleet-controller
     - fleet-cli
     image_templates:
-    - "{{ .Env.REGISTRY }}/rancher/fleet:{{ .Tag }}-linux-arm64"
+    - "docker.io/rancher/fleet:{{ .Tag }}-linux-arm64"
     dockerfile: package/Dockerfile
     build_flag_templates:
     - "--pull"
@@ -146,12 +147,13 @@ dockers:
   -
     use: buildx
     id: fleet-agent-amd64-public
+    skip_push: "{{ .Env.IS_HOTFIX }}"
     goos: linux
     goarch: amd64
     ids:
     - fleet-agent
     image_templates:
-    - "{{ .Env.REGISTRY }}/rancher/fleet-agent:{{ .Tag }}-linux-amd64"
+    - "docker.io/rancher/fleet-agent:{{ .Tag }}-linux-amd64"
     dockerfile: package/Dockerfile.agent
     build_flag_templates:
     - "--pull"
@@ -166,12 +168,13 @@ dockers:
   -
     use: buildx
     id: fleet-agent-arm64-public
+    skip_push: "{{ .Env.IS_HOTFIX }}"
     goos: linux
     goarch: arm64
     ids:
     - fleet-agent
     image_templates:
-    - "{{ .Env.REGISTRY }}/rancher/fleet-agent:{{ .Tag }}-linux-arm64"
+    - "docker.io/rancher/fleet-agent:{{ .Tag }}-linux-arm64"
     dockerfile: package/Dockerfile.agent
     build_flag_templates:
     - "--pull"
@@ -298,17 +301,19 @@ dockers:
 
 docker_manifests:
   # https://goreleaser.com/customization/docker_manifest/
-  - name_template: "{{ .Env.REGISTRY }}/rancher/fleet:{{ .Tag }}"
+  - name_template: "docker.io/rancher/fleet:{{ .Tag }}"
     id: fleet-manifest-public
+    skip_push: "{{ .Env.IS_HOTFIX }}"
     image_templates:
-    - "{{ .Env.REGISTRY }}/rancher/fleet:{{ .Tag }}-linux-amd64"
-    - "{{ .Env.REGISTRY }}/rancher/fleet:{{ .Tag }}-linux-arm64"
+    - "docker.io/rancher/fleet:{{ .Tag }}-linux-amd64"
+    - "docker.io/rancher/fleet:{{ .Tag }}-linux-arm64"
 
-  - name_template: "{{ .Env.REGISTRY }}/rancher/fleet-agent:{{ .Tag }}"
+  - name_template: "docker.io/rancher/fleet-agent:{{ .Tag }}"
     id: fleet-agent-manifest-public
+    skip_push: "{{ .Env.IS_HOTFIX }}"
     image_templates:
-    - "{{ .Env.REGISTRY }}/rancher/fleet-agent:{{ .Tag }}-linux-amd64"
-    - "{{ .Env.REGISTRY }}/rancher/fleet-agent:{{ .Tag }}-linux-arm64"
+    - "docker.io/rancher/fleet-agent:{{ .Tag }}-linux-amd64"
+    - "docker.io/rancher/fleet-agent:{{ .Tag }}-linux-arm64"
 
     # Disabled until `docker manifest create` supports provenance meta data
     # - name_template: "{{ .Env.PRIME_REGISTRY }}/rancher/fleet:{{ .Tag }}"
diff --git a/go.mod b/go.mod
index 715c8949..77dabb7e 100644
--- a/go.mod
+++ b/go.mod
@@ -15,10 +15,10 @@ require (
 	github.com/chartmuseum/helm-push v0.10.4
 	github.com/cheggaaa/pb v1.0.29
 	github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
-	github.com/docker/docker v28.0.0+incompatible
+	github.com/docker/docker v28.0.1+incompatible
 	github.com/evanphx/json-patch v5.9.11+incompatible
 	github.com/go-git/go-billy/v5 v5.6.2
-	github.com/go-git/go-git/v5 v5.13.2
+	github.com/go-git/go-git/v5 v5.14.0
 	github.com/go-logr/logr v1.4.2
 	github.com/go-playground/webhooks/v6 v6.4.0
 	github.com/gobwas/glob v0.2.3
@@ -95,7 +95,7 @@ require (
 	github.com/cenkalti/backoff/v4 v4.3.0 // indirect
 	github.com/cespare/xxhash/v2 v2.3.0 // indirect
 	github.com/chai2010/gettext-go v1.0.2 // indirect
-	github.com/cloudflare/circl v1.3.7 // indirect
+	github.com/cloudflare/circl v1.6.0 // indirect
 	github.com/containerd/containerd v1.7.24 // indirect
 	github.com/containerd/errdefs v0.3.0 // indirect
 	github.com/containerd/log v0.1.0 // indirect
@@ -103,7 +103,7 @@ require (
 	github.com/containerd/stargz-snapshotter/estargz v0.16.3 // indirect
 	github.com/cpuguy83/dockercfg v0.3.2 // indirect
 	github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
-	github.com/cyphar/filepath-securejoin v0.3.6 // indirect
+	github.com/cyphar/filepath-securejoin v0.4.1 // indirect
 	github.com/distribution/reference v0.6.0 // indirect
 	github.com/docker/cli v27.5.0+incompatible // indirect
 	github.com/docker/distribution v2.8.3+incompatible // indirect
@@ -132,7 +132,7 @@ require (
 	github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
 	github.com/gobuffalo/flect v1.0.3 // indirect
 	github.com/gogo/protobuf v1.3.2 // indirect
-	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
+	github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
 	github.com/golang/protobuf v1.5.4 // indirect
 	github.com/gomodule/redigo v2.0.0+incompatible // indirect
 	github.com/google/btree v1.1.3 // indirect
@@ -203,7 +203,7 @@ require (
 	github.com/shirou/gopsutil/v3 v3.23.12 // indirect
 	github.com/shoenig/go-m1cpu v0.1.6 // indirect
 	github.com/shopspring/decimal v1.4.0 // indirect
-	github.com/skeema/knownhosts v1.3.0 // indirect
+	github.com/skeema/knownhosts v1.3.1 // indirect
 	github.com/spf13/cast v1.7.0 // indirect
 	github.com/spf13/pflag v1.0.6 // indirect
 	github.com/tklauser/go-sysconf v0.3.12 // indirect
diff --git a/go.sum b/go.sum
index 9c87c2f9..35f3d405 100644
--- a/go.sum
+++ b/go.sum
@@ -696,8 +696,8 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR
 github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
 github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
-github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
+github.com/cloudflare/circl v1.6.0 h1:cr5JKic4HI+LkINy2lg3W2jF8sHCVTBncJr5gIIq7qk=
+github.com/cloudflare/circl v1.6.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs=
 github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
 github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
 github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
@@ -732,8 +732,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6N
 github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
 github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
 github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
-github.com/cyphar/filepath-securejoin v0.3.6 h1:4d9N5ykBnSp5Xn2JkhocYDkOpURL/18CYMpo6xB9uWM=
-github.com/cyphar/filepath-securejoin v0.3.6/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
+github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s=
+github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
@@ -746,8 +746,8 @@ github.com/docker/cli v27.5.0+incompatible h1:aMphQkcGtpHixwwhAXJT1rrK/detk2JIvD
 github.com/docker/cli v27.5.0+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
 github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
 github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
-github.com/docker/docker v28.0.0+incompatible h1:Olh0KS820sJ7nPsBKChVhk5pzqcwDR15fumfAd/p9hM=
-github.com/docker/docker v28.0.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
+github.com/docker/docker v28.0.1+incompatible h1:FCHjSRdXhNRFjlHMTv4jUNlIBbTeRjrWfeFuJp7jpo0=
+github.com/docker/docker v28.0.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
 github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo=
 github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
 github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c=
@@ -762,8 +762,8 @@ github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1 h1:ZClxb8laGDf5arX
 github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
 github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
 github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/elazarl/goproxy v1.4.0 h1:4GyuSbFa+s26+3rmYNSuUVsx+HgPrV1bk1jXI0l9wjM=
-github.com/elazarl/goproxy v1.4.0/go.mod h1:X/5W/t+gzDyLfHW4DrMdpjqYjpXsURlBt9lpBDxZZZQ=
+github.com/elazarl/goproxy v1.7.2 h1:Y2o6urb7Eule09PjlhQRGNsqRfPmYI3KKQLFpCAV3+o=
+github.com/elazarl/goproxy v1.7.2/go.mod h1:82vkLNir0ALaW14Rc399OTTjyNREgmdL2cVoIbS6XaE=
 github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU=
 github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
 github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
@@ -822,8 +822,8 @@ github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UN
 github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU=
 github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4=
 github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
-github.com/go-git/go-git/v5 v5.13.2 h1:7O7xvsK7K+rZPKW6AQR1YyNhfywkv7B8/FsP3ki6Zv0=
-github.com/go-git/go-git/v5 v5.13.2/go.mod h1:hWdW5P4YZRjmpGHwRH2v3zkWcNl6HeXaXQEMGb3NJ9A=
+github.com/go-git/go-git/v5 v5.14.0 h1:/MD3lCrGjCen5WfEAzKg00MJJffKhC8gzS80ycmCi60=
+github.com/go-git/go-git/v5 v5.14.0/go.mod h1:Z5Xhoia5PcWA3NF8vRLURn9E5FRhSl7dGj9ItW3Wk5k=
 github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
 github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
 github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
@@ -876,8 +876,9 @@ github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP
 github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
 github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
 github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ=
+github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw=
 github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
 github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
 github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
@@ -1240,8 +1241,8 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L
 github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
 github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
 github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
-github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
-github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
+github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
+github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
 github.com/rubenv/sql-migrate v1.7.1 h1:f/o0WgfO/GqNuVg+6801K/KW3WdDSupzSjDYODmiUq4=
 github.com/rubenv/sql-migrate v1.7.1/go.mod h1:Ob2Psprc0/3ggbM6wCzyYVFFuc6FyZrb2AS+ezLDFb4=
 github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
@@ -1262,8 +1263,8 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx
 github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
 github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
 github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
-github.com/skeema/knownhosts v1.3.0 h1:AM+y0rI04VksttfwjkSTNQorvGqmwATnvnAHpSgc0LY=
-github.com/skeema/knownhosts v1.3.0/go.mod h1:sPINvnADmT/qYH1kfv+ePMmOBTH6Tbl7b5LvTDjFK7M=
+github.com/skeema/knownhosts v1.3.1 h1:X2osQ+RAjK76shCbvhHHHVl3ZlgDm8apHEHFqRjnBY8=
+github.com/skeema/knownhosts v1.3.1/go.mod h1:r7KTdC8l4uxWRyK2TpQZ/1o5HaSzh06ePQNxPwTcfiY=
 github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
 github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4=
 github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
diff --git a/internal/cmd/cli/apply.go b/internal/cmd/cli/apply.go
index 14b9416d..7fb661c6 100644
--- a/internal/cmd/cli/apply.go
+++ b/internal/cmd/cli/apply.go
@@ -5,8 +5,10 @@ import (
 	"fmt"
 	"os"
 	"os/exec"
+	"strconv"
 	"strings"
 
+	"github.com/sirupsen/logrus"
 	"github.com/spf13/cobra"
 
 	"github.com/rancher/fleet/internal/bundlereader"
@@ -16,9 +18,15 @@ import (
 	"github.com/rancher/fleet/internal/cmd/cli/writer"
 	fleet "github.com/rancher/fleet/pkg/apis/fleet.cattle.io/v1alpha1"
 
+	"k8s.io/apimachinery/pkg/api/errors"
 	"k8s.io/apimachinery/pkg/util/yaml"
 )
 
+const (
+	FleetApplyConflictRetriesEnv = "FLEET_APPLY_CONFLICT_RETRIES"
+	defaultApplyConflictRetries  = 1
+)
+
 type readFile func(name string) ([]byte, error)
 
 // NewApply returns a subcommand to create bundles from directories
@@ -68,6 +76,24 @@ func (r *Apply) PersistentPre(_ *cobra.Command, _ []string) error {
 }
 
 func (a *Apply) Run(cmd *cobra.Command, args []string) error {
+	// Apply retries on conflict errors.
+	// We could have race conditions updating the Bundle in high load situations
+	var err error
+	retries, err := GetOnConflictRetries()
+	if err != nil {
+		logrus.Errorf("failed parsing env variable %s, using defaults, err: %v", FleetApplyConflictRetriesEnv, err)
+	}
+	for range retries {
+		err = a.run(cmd, args)
+		if !errors.IsConflict(err) {
+			break
+		}
+	}
+
+	return err
+}
+
+func (a *Apply) run(cmd *cobra.Command, args []string) error {
 	labels := a.Label
 	if a.Commit == "" {
 		a.Commit = currentCommit()
@@ -210,3 +236,19 @@ func currentCommit() string {
 	}
 	return ""
 }
+
+func GetOnConflictRetries() (int, error) {
+	s := os.Getenv(FleetApplyConflictRetriesEnv)
+	if s != "" {
+		// check if we have a valid value
+		// it must be an integer
+		r, err := strconv.Atoi(s)
+		if err != nil {
+			return defaultApplyConflictRetries, err
+		} else {
+			return r, nil
+		}
+	}
+
+	return defaultApplyConflictRetries, nil
+}
diff --git a/internal/cmd/controller/gitops/reconciler/gitjob_controller.go b/internal/cmd/controller/gitops/reconciler/gitjob_controller.go
index 33364d45..1805598d 100644
--- a/internal/cmd/controller/gitops/reconciler/gitjob_controller.go
+++ b/internal/cmd/controller/gitops/reconciler/gitjob_controller.go
@@ -15,6 +15,7 @@ import (
 	"github.com/go-logr/logr"
 	"github.com/reugn/go-quartz/quartz"
 
+	fleetcli "github.com/rancher/fleet/internal/cmd/cli"
 	fleetutil "github.com/rancher/fleet/internal/cmd/controller/errorutil"
 	"github.com/rancher/fleet/internal/cmd/controller/finalize"
 	"github.com/rancher/fleet/internal/cmd/controller/imagescan"
@@ -778,7 +779,7 @@ func (r *GitJobReconciler) newJobSpec(ctx context.Context, gitrepo *v1alpha1.Git
 
 	saName := names.SafeConcatName("git", gitrepo.Name)
 	logger := log.FromContext(ctx)
-	args, envs := argsAndEnvs(gitrepo, logger.V(1).Enabled(), CACertsFilePathOverride)
+	args, envs := argsAndEnvs(gitrepo, logger, CACertsFilePathOverride)
 
 	return &batchv1.JobSpec{
 		BackoffLimit: &zero,
@@ -834,13 +835,13 @@ func (r *GitJobReconciler) newJobSpec(ctx context.Context, gitrepo *v1alpha1.Git
 	}, nil
 }
 
-func argsAndEnvs(gitrepo *v1alpha1.GitRepo, debug bool, CACertsPathOverride string) ([]string, []corev1.EnvVar) {
+func argsAndEnvs(gitrepo *v1alpha1.GitRepo, logger logr.Logger, CACertsPathOverride string) ([]string, []corev1.EnvVar) {
 	args := []string{
 		"fleet",
 		"apply",
 	}
 
-	if debug {
+	if logger.V(1).Enabled() {
 		args = append(args, "--debug", "--debug-level", "9")
 	}
 
@@ -876,11 +877,19 @@ func argsAndEnvs(gitrepo *v1alpha1.GitRepo, debug bool, CACertsPathOverride stri
 		}
 	}
 
+	fleetApplyRetries, err := fleetcli.GetOnConflictRetries()
+	if err != nil {
+		logger.Error(err, "failed parsing env variable, using defaults", "env_var_name", fleetcli.FleetApplyConflictRetriesEnv)
+	}
 	env := []corev1.EnvVar{
 		{
 			Name:  "HOME",
 			Value: fleetHomeDir,
 		},
+		{
+			Name:  fleetcli.FleetApplyConflictRetriesEnv,
+			Value: strconv.Itoa(fleetApplyRetries),
+		},
 	}
 	if gitrepo.Spec.HelmSecretNameForPaths != "" {
 		helmArgs := []string{
diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go
index cbe87a06..00fba75a 100644
--- a/pkg/webhook/webhook.go
+++ b/pkg/webhook/webhook.go
@@ -24,9 +24,8 @@ import (
 	corev1 "k8s.io/api/core/v1"
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 	"k8s.io/apimachinery/pkg/labels"
-	ktypes "k8s.io/apimachinery/pkg/types"
+	"k8s.io/apimachinery/pkg/types"
 	kcache "k8s.io/client-go/tools/cache"
-	"k8s.io/client-go/util/retry"
 	ctrl "sigs.k8s.io/controller-runtime"
 	"sigs.k8s.io/controller-runtime/pkg/cache"
 	"sigs.k8s.io/controller-runtime/pkg/client"
@@ -224,33 +223,29 @@ func (w *Webhook) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
 
 			if gitrepo.Status.WebhookCommit != revision && revision != "" {
 				var gitRepoFromCluster v1alpha1.GitRepo
-				if err := retry.RetryOnConflict(retry.DefaultRetry, func() error {
-					err := w.client.Get(
-						ctx,
-						ktypes.NamespacedName{
-							Name:      gitrepo.Name,
-							Namespace: gitrepo.Namespace,
-						}, &gitRepoFromCluster,
-					)
-					if err != nil {
-						return err
-					}
-					gitRepoFromCluster.Status.WebhookCommit = revision
-					return w.client.Status().Update(ctx, &gitRepoFromCluster)
-				}); err != nil {
+				err := w.client.Get(
+					ctx,
+					types.NamespacedName{
+						Name:      gitrepo.Name,
+						Namespace: gitrepo.Namespace,
+					}, &gitRepoFromCluster,
+				)
+				if err != nil {
 					w.logAndReturn(rw, err)
 					return
 				}
+				orig := gitRepoFromCluster.DeepCopy()
+				gitRepoFromCluster.Status.WebhookCommit = revision
 				// if PollingInterval is not set and webhook is configured, set it to 1 hour
-				if gitrepo.Spec.PollingInterval == nil {
-					p := client.MergeFrom(&gitRepoFromCluster)
+				if gitRepoFromCluster.Spec.PollingInterval == nil {
 					gitRepoFromCluster.Spec.PollingInterval = &metav1.Duration{
 						Duration: webhookDefaultSyncInterval * time.Second,
 					}
-					if err := w.client.Patch(ctx, &gitRepoFromCluster, p); err != nil {
-						w.logAndReturn(rw, err)
-						return
-					}
+				}
+				p := client.MergeFrom(orig)
+				if err := w.client.Status().Patch(ctx, &gitRepoFromCluster, p); err != nil {
+					w.logAndReturn(rw, err)
+					return
 				}
 			}
 		}



Test patch:
diff --git a/internal/cmd/controller/gitops/reconciler/gitjob_test.go b/internal/cmd/controller/gitops/reconciler/gitjob_test.go
index e4841590..3e708344 100644
--- a/internal/cmd/controller/gitops/reconciler/gitjob_test.go
+++ b/internal/cmd/controller/gitops/reconciler/gitjob_test.go
@@ -1392,6 +1392,10 @@ func TestGenerateJob_EnvVars(t *testing.T) {
 					Name:  "HOME",
 					Value: "/fleet-home",
 				},
+				{
+					Name:  "FLEET_APPLY_CONFLICT_RETRIES",
+					Value: "1",
+				},
 				{
 					Name:  "GIT_SSH_COMMAND",
 					Value: "ssh -o stricthostkeychecking=accept-new",
@@ -1414,6 +1418,10 @@ func TestGenerateJob_EnvVars(t *testing.T) {
 					Name:  "HOME",
 					Value: "/fleet-home",
 				},
+				{
+					Name:  "FLEET_APPLY_CONFLICT_RETRIES",
+					Value: "1",
+				},
 				{
 					Name:  "COMMIT",
 					Value: "commit",
@@ -1439,6 +1447,52 @@ func TestGenerateJob_EnvVars(t *testing.T) {
 			},
 			osEnv: map[string]string{"HTTP_PROXY": "httpProxy", "HTTPS_PROXY": "httpsProxy"},
 		},
+		"retries_valid": {
+			gitrepo: &fleetv1.GitRepo{
+				Spec: fleetv1.GitRepoSpec{},
+				Status: fleetv1.GitRepoStatus{
+					Commit: "commit",
+				},
+			},
+			expectedContainerEnvVars: []corev1.EnvVar{
+				{
+					Name:  "HOME",
+					Value: "/fleet-home",
+				},
+				{
+					Name:  "FLEET_APPLY_CONFLICT_RETRIES",
+					Value: "3",
+				},
+				{
+					Name:  "COMMIT",
+					Value: "commit",
+				},
+			},
+			osEnv: map[string]string{"FLEET_APPLY_CONFLICT_RETRIES": "3"},
+		},
+		"retries_not_valid": {
+			gitrepo: &fleetv1.GitRepo{
+				Spec: fleetv1.GitRepoSpec{},
+				Status: fleetv1.GitRepoStatus{
+					Commit: "commit",
+				},
+			},
+			expectedContainerEnvVars: []corev1.EnvVar{
+				{
+					Name:  "HOME",
+					Value: "/fleet-home",
+				},
+				{
+					Name:  "FLEET_APPLY_CONFLICT_RETRIES",
+					Value: "1",
+				},
+				{
+					Name:  "COMMIT",
+					Value: "commit",
+				},
+			},
+			osEnv: map[string]string{"FLEET_APPLY_CONFLICT_RETRIES": "this_is_not_an_int"},
+		},
 	}
 
 	for name, test := range tests {
diff --git a/pkg/webhook/webhook_test.go b/pkg/webhook/webhook_test.go
index e8c53f72..dd43c25e 100644
--- a/pkg/webhook/webhook_test.go
+++ b/pkg/webhook/webhook_test.go
@@ -385,16 +385,12 @@ func TestGitHubRightSecretAndCommitUpdated(t *testing.T) {
 
 	// Status().Update() mock call
 	mockClient.EXPECT().Status().Return(statusClient).Times(1)
-	statusClient.EXPECT().Update(gomock.Any(), gomock.Any(), gomock.Any()).Do(
-		func(ctx context.Context, repo *v1alpha1.GitRepo, opts ...interface{}) {
+	statusClient.EXPECT().Patch(gomock.Any(), gomock.Any(), gomock.Any()).Do(
+		func(ctx context.Context, repo *v1alpha1.GitRepo, _ client.Patch, opts ...interface{}) {
 			// check that the commit is the expected one
 			if repo.Status.WebhookCommit != expectedCommit {
 				t.Errorf("expecting gitrepo webhook commit %s, got %s", expectedCommit, repo.Status.WebhookCommit)
 			}
-		},
-	).Times(1)
-	mockClient.EXPECT().Patch(gomock.Any(), gomock.Any(), gomock.Any()).Do(
-		func(ctx context.Context, repo *v1alpha1.GitRepo, _ client.Patch, opts ...interface{}) {
 			if repo.Spec.PollingInterval.Duration != time.Hour {
 				t.Errorf("expecting gitrepo polling interval 1h, got %s", repo.Spec.PollingInterval.Duration)
 			}