Skip to content

[Multi_K8s-Plugin] Fix livestate drift detection and resource filtering#6673

Open
mohammedfirdouss wants to merge 2 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/fix-livestate-drift-detection
Open

[Multi_K8s-Plugin] Fix livestate drift detection and resource filtering#6673
mohammedfirdouss wants to merge 2 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/fix-livestate-drift-detection

Conversation

@mohammedfirdouss
Copy link
Copy Markdown
Contributor

What this PR does:
Implements two missing livestate features in the kubernetes_multicluster plugin, porting them from the single-cluster kubernetes plugin:

  1. Drift detection ignore: Resources annotated with pipecd.dev/ignore-drift-detection: "true" are now excluded from drift comparison, matching the behaviour of the single-cluster plugin.
  2. Include/exclude resource filtering: The deploy target config now supports appStateInformer.includeResources and appStateInformer.excludeResources to control which resource types are included in the livestate drift check.

Why we need it:
Without drift detection ignore, applications with resources that are expected to drift at runtime (e.g. HPAs, Jobs managed by external controllers) would always show as OutOfSync in the PipeCD UI, even when everything is working correctly. Without include/exclude filtering, there was no way to scope the drift check to the resource types that matter for a given deploy target.

Which issue(s) this PR fixes:

Fixes #6446

Does this PR introduce a user-facing change?:

  • How are users affected by this change: Users can now annotate resources with pipecd.dev/ignore-drift-detection: "true" to exclude them from drift detection. Users can also configure appStateInformer.includeResources and appStateInformer.excludeResources per deploy target to scope the livestate comparison.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

…ce filtering

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LFX Mentorship T-1 2026] Kubernetes Multi-Cluster Plugin #6446

1 participant