OCPBUGS-26022: Validate inject-proxy even without proxy env vars - #1437
OCPBUGS-26022: Validate inject-proxy even without proxy env vars#1437mdbooth wants to merge 1 commit into
Conversation
|
@mdbooth: This pull request references Jira Issue OCPBUGS-26022, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThe proxy injection logic now validates every requested container name, including when proxy values are empty. It aggregates missing names into one error. Tests cover proxy-configured and no-proxy cases. ChangesProxy container validation
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mdbooth The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@mdbooth: This pull request references Jira Issue OCPBUGS-26022, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@mdbooth: This pull request references Jira Issue OCPBUGS-26022, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@mdbooth: This pull request references Jira Issue OCPBUGS-26022, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jianl@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/resourcebuilder/podspec_test.go`:
- Around line 92-119: Update the invalid-container test cases in the proxy
injection test table to include at least two missing container names, then
assert that expectedErr contains all missing names in their requested order
within the joined error message. Preserve the existing valid container and
proxy/no-proxy coverage.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 06d86f87-c6cb-4588-a131-dcf599fd12d2
📒 Files selected for processing (2)
lib/resourcebuilder/podspec.golib/resourcebuilder/podspec_test.go
We were previously validating that the inject-proxy annotation referred only to valid container names, but only when proxy variables were defined. This meant we were not usually catching invalid manifests during presubmits, as these jobs rarely run with a cluster proxy.
|
@mdbooth: This pull request references Jira Issue OCPBUGS-26022, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jianl@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/test e2e-agnostic-ovn-techpreview-serial-2of3 |
|
@mdbooth: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
We were previously validating that the inject-proxy annotation referred only to valid container names, but only when proxy variables were defined. This meant we were not usually catching invalid manifests during presubmits, as these jobs rarely run with a cluster proxy.
Summary by CodeRabbit