Skip to content

revert(operator): remove NetworkPolicy from operator bundle manifests - #3873

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
jkhelil:revert-pr-3714-networkpolicy-operator
Aug 7, 2026
Merged

revert(operator): remove NetworkPolicy from operator bundle manifests#3873
tekton-robot merged 1 commit into
tektoncd:mainfrom
jkhelil:revert-pr-3714-networkpolicy-operator

Conversation

@jkhelil

@jkhelil jkhelil commented Aug 6, 2026

Copy link
Copy Markdown
Member

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 NetworkPolicy resources 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

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>
@tekton-robot tekton-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Aug 6, 2026
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 6, 2026
@jkhelil

jkhelil commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

/release-note-none

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 6, 2026
@pratap0007

Copy link
Copy Markdown
Contributor

/approve

@tekton-robot

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 7, 2026

@khrm khrm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 7, 2026
@pratap0007 pratap0007 closed this Aug 7, 2026
@pratap0007 pratap0007 reopened this Aug 7, 2026
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.13%. Comparing base (b3aa987) to head (f8b1374).
⚠️ Report is 2 commits behind head on main.

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     
Flag Coverage Δ
unit-tests 26.13% <ø> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tekton-robot
tekton-robot merged commit 818e85d into tektoncd:main Aug 7, 2026
17 checks passed
@pratap0007

Copy link
Copy Markdown
Contributor

/cherry-pick release-v0.81.x

@tekton-robot

Copy link
Copy Markdown
Contributor

Cherry-pick to release-v0.81.x successful!

A new pull request has been created to cherry-pick this change to release-v0.81.x.

PR: #3877

Please review and merge the cherry-pick PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants