fix(modelsasservice): [3.5-ea.2] extend NetworkPolicy to cover payload-pre-processing#33849
Open
liangwen12year wants to merge 1 commit into
Conversation
…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>
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
jland-redhat
approved these changes
Jul 1, 2026
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.
Summary
payload-pre-processingpods, which were introduced in 3.5EA2podSelectorfrommatchLabelstomatchExpressionswithInoperator to match bothpayload-processingandpayload-pre-processingin a single NetworkPolicypayload-pre-processingDeployment and Service to the gateway namespace resource allowlistCherry-pick of opendatahub-io#3731 onto
rhoai-3.5-ea.2. Builds on top of #33675. Without this change,payload-pre-processingpods will CrashLoopBackOff on OCP 4.22 due to the deny-all NetworkPolicy inopenshift-ingress.Test plan
TestPayloadProcessingNetworkPolicy,TestRestoreGatewayNamespaceResources)Jira: RHOAIENG-71268
🤖 Generated with Claude Code