[Feature] Add Karpenter Do Not Disrupt policy for Karpenter 1.x migration

[Feature] Add Karpenter Do Not Disrupt policy for Karpenter 1.x migration

This policy adds the karpenter.sh/do-not-disrupt label to pods that have the deprecated karpenter.sh/do-not-evict label to ensure smooth upgrades from Karpenter 0.x to 1.x versions.

Fixes #1191

Related Issue(s)

  • Issue #1191: To add Karpenter Do Not Disrupt policy for Karpenter 1.x version

Description

This PR:

  • Adds a new policy to facilitate migration from Karpenter 0.x to 1.x
  • Automatically adds karpenter.sh/do-not-disrupt label to pods having the deprecated karpenter.sh/do-not-evict label

Checklist

  • I have read the policy contribution guidelines
  • I have added the artifacthub-pkg.yml file and have verified it is complete and correct.
  • I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.

Merge request reports

Loading