Skip to content

Conversation

mfleader
Copy link
Collaborator

Add pruneExcludedResources function to automatically delete NetworkPolicy resources when EnableNetworkPolicy feature is disabled. This ensures TestNetworkPolicyConfiguration passes by properly cleaning up resources during feature toggles.

  • Add pruning logic that reuses existing HandleDisabledNetworkPolicy
  • Remove obsolete commented reconcileNetworkPolicy function
  • Integrate pruning into reconcileManifestResources before applying manifests

Add pruneExcludedResources function to automatically delete NetworkPolicy
resources when EnableNetworkPolicy feature is disabled. This ensures
TestNetworkPolicyConfiguration passes by properly cleaning up resources
during feature toggles.

- Add pruning logic that reuses existing HandleDisabledNetworkPolicy
- Remove obsolete commented reconcileNetworkPolicy function
- Integrate pruning into reconcileManifestResources before applying manifests

Signed-off-by: Matthew F Leader <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant