Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport v2.9] Fleet controller and agent update status field too often #3007

Closed
1 task done
rancherbot opened this issue Oct 24, 2024 · 0 comments
Closed
1 task done
Assignees
Labels
Milestone

Comments

@rancherbot
Copy link
Collaborator

This is a backport issue for #3004, automatically created via GitHub Actions workflow initiated by @aruiz14

Original issue body:

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I've observed an abnormal number of status updates in some BundleDeployments objects.
While comparing them, I noticed that both Fleet's agent and controller are fighting to update the same field:

@@ -314,6 +314,19 @@
       fieldsType: FieldsV1
       fieldsV1:
         f:status:
+          f:appliedDeploymentID: {}
+          f:nonModified: {}
+          f:ready: {}
+          f:release: {}
+          f:resources: {}
+      manager: fleetagent
+      operation: Update
+      subresource: status
+      time: "2024-10-23T06:17:26Z"
+    - apiVersion: fleet.cattle.io/v1alpha1
+      fieldsType: FieldsV1
+      fieldsV1:
+        f:status:
           .: {}
           f:conditions: {}
           f:display:
@@ -321,27 +334,14 @@
             f:deployed: {}
             f:monitored: {}
             f:state: {}
+          f:syncGeneration: {}
       manager: fleetcontroller
       operation: Update
       subresource: status
-      time: "2024-10-23T06:17:06Z"
-    - apiVersion: fleet.cattle.io/v1alpha1
-      fieldsType: FieldsV1
-      fieldsV1:
-        f:status:
-          f:appliedDeploymentID: {}
-          f:nonModified: {}
-          f:ready: {}
-          f:release: {}
-          f:resources: {}
-          f:syncGeneration: {}
-      manager: fleetagent
-      operation: Update
-      subresource: status
-      time: "2024-10-23T06:17:26Z"
+      time: "2024-10-23T06:17:30Z"

Expected Behavior

fleetcontroller should respect the existing value in the status.

Steps To Reproduce

No response

Environment

- Fleet Version: 0.10.2

Logs

No response

Anything else?

No response

@rancherbot rancherbot added this to the v2.9.4 milestone Oct 24, 2024
@rancherbot rancherbot added this to Fleet Oct 24, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Fleet Oct 24, 2024
@aruiz14 aruiz14 moved this from 🆕 New to 👀 In review in Fleet Oct 24, 2024
@weyfonk weyfonk closed this as completed Oct 29, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Fleet Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants