[cherry-pick: release-v0.81.x] revert(operator): remove NetworkPolicy from operator bundle manifests - #3877
Merged
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 #3714. The reconciler-managed NetworkPolicies for operand namespaces (proxy-webhook, pipeline, triggers, chains, etc.) are unaffected. Reverts the static-manifest portion of #3714. Signed-off-by: Jawed khelil <jkhelil@redhat.com> Assisted-by: Claude Sonnet 4.6 (via Cursor) Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
/approve |
Member
|
/release-note-none |
Contributor
|
/lgtm |
Member
|
/approve |
Contributor
Author
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkhelil, 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a cherry-pick of #3873
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