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

Drift correction not working #2436

Open
1 task done
lindhe opened this issue May 16, 2024 · 0 comments
Open
1 task done

Drift correction not working #2436

lindhe opened this issue May 16, 2024 · 0 comments
Labels

Comments

@lindhe
Copy link

lindhe commented May 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If an object is changed, Fleet detects the diff but does nothing to converge to a healthy state.

Expected Behavior

When spec.correctDrift.enabled=true, I expect Fleet to try and apply changes as soon as there is a diff.

Steps To Reproduce

  1. Have Rancher v2.8.1 installed.

  2. In Rancher, click "Continuous Delivery" and "Git Repos" and select the "fleet-local" workspace.

  3. Add a GitRepo that applies some resource. Make sure to check "Enable Self-Healing" to set spec.correctDrift.enabled=true in the bundle.

  4. Wait for the GitRepo to sync and become healthy, with the new resource created and in state "Ready".

  5. Edit the resource using kubectl edit, e.g. delete a label or something.

  6. Observe new state "Modified" for the resource:

    Screenshot 2024-05-16 171752

Environment

- Architecture: amd64
- Fleet Version: The one that's bundled with Rancher v2.8.1. 
- Cluster:
  - Provider: RKE2
  - Options: 3 nodes upstream cluster
  - Kubernetes Version: 1.27.9

Logs

No response

Anything else?

It looks like #1594 tried to implement drift correction, but it's clearly not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To Triage
Development

No branches or pull requests

1 participant