revert(operator): remove NetworkPolicy from operator bundle manifests - #3873
Conversation
OLM v1 does not support NetworkPolicy resources in operator bundles. Remove config/kubernetes/base/networkpolicy.yaml and config/openshift/base/networkpolicy.yaml (and their kustomization entries) added by tektoncd#3714. The reconciler-managed NetworkPolicies for operand namespaces (proxy-webhook, pipeline, triggers, chains, etc.) are unaffected. Reverts the static-manifest portion of tektoncd#3714. Signed-off-by: Jawed khelil <jkhelil@redhat.com> Assisted-by: Claude Sonnet 4.6 (via Cursor) Co-authored-by: Cursor <cursoragent@cursor.com>
|
/release-note-none |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pratap0007 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3873 +/- ##
==========================================
+ Coverage 25.78% 26.13% +0.35%
==========================================
Files 463 465 +2
Lines 24530 24930 +400
==========================================
+ Hits 6325 6516 +191
- Misses 17507 17694 +187
- Partials 698 720 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/cherry-pick release-v0.81.x |
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #3877 Please review and merge the cherry-pick PR. |
Changes
Removes the static NetworkPolicy manifests added to the operator bundle by #3714:
config/kubernetes/base/networkpolicy.yaml(deleted)config/openshift/base/networkpolicy.yaml(deleted)config/kubernetes/base/kustomization.yaml(entry removed)config/openshift/base/kustomization.yaml(entry removed)docs/NetworkPolicy.md(operator namespace section removed)Why
OLM v1 does not support
NetworkPolicyresources in operator bundles. Shipping these as static manifests alongside the operator Deployment/RBAC causes install failures on OLM v1 clusters.The reconciler-managed NetworkPolicies for operand namespaces (proxy-webhook, pipeline core, triggers, chains, PAC, pruner, results, multicluster, etc.) are not affected — those are applied by the operator's own reconcilers and are unrelated to the bundle manifests.
Related
Partial revert of #3714 (static-manifest portion only).
Made with Cursor