Skip to content

fix(modelsasservice): [3.5-ea.2] extend NetworkPolicy to cover payload-pre-processing#33849

Open
liangwen12year wants to merge 1 commit into
red-hat-data-services:rhoai-3.5-ea.2from
liangwen12year:cherry-pick/rhoai-3.5-ea.2/pre-processing-np
Open

fix(modelsasservice): [3.5-ea.2] extend NetworkPolicy to cover payload-pre-processing#33849
liangwen12year wants to merge 1 commit into
red-hat-data-services:rhoai-3.5-ea.2from
liangwen12year:cherry-pick/rhoai-3.5-ea.2/pre-processing-np

Conversation

@liangwen12year

Copy link
Copy Markdown

Summary

  • Extend the payload-processing NetworkPolicy to also cover payload-pre-processing pods, which were introduced in 3.5EA2
  • Switch podSelector from matchLabels to matchExpressions with In operator to match both payload-processing and payload-pre-processing in a single NetworkPolicy
  • Add payload-pre-processing Deployment and Service to the gateway namespace resource allowlist

Cherry-pick of opendatahub-io#3731 onto rhoai-3.5-ea.2. Builds on top of #33675. Without this change, payload-pre-processing pods will CrashLoopBackOff on OCP 4.22 due to the deny-all NetworkPolicy in openshift-ingress.

Test plan

  • Unit tests pass (TestPayloadProcessingNetworkPolicy, TestRestoreGatewayNamespaceResources)
  • Deploy on OCP 4.22 cluster and verify both payload-processing and payload-pre-processing pods are Running

Jira: RHOAIENG-71268

🤖 Generated with Claude Code

…ssing

The existing NetworkPolicy only matched payload-processing pods. The
payload-pre-processing image was introduced in 3.5EA2 and needs the same
egress/ingress rules to avoid CrashLoopBackOff on OCP 4.22.

Switch podSelector from matchLabels to matchExpressions with an In
operator to cover both payload-processing and payload-pre-processing
in a single NetworkPolicy.

Also add payload-pre-processing Deployment and Service to the gateway
namespace resource allowlist.

Ref: RHOAIENG-71268

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@liangwen12year liangwen12year requested a review from ugiordan July 1, 2026 19:43
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (rhoai-3.5-ea.2@3e6603f). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                Coverage Diff                @@
##             rhoai-3.5-ea.2   #33849   +/-   ##
=================================================
  Coverage                  ?   56.15%           
=================================================
  Files                     ?      218           
  Lines                     ?    16447           
  Branches                  ?        0           
=================================================
  Hits                      ?     9235           
  Misses                    ?     6363           
  Partials                  ?      849           

☔ 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.

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.

3 participants