NO-JIRA: test/extended: scope oc process to NTO namespace#1508
Conversation
WithoutNamespace() does not add `-n`, so `oc` used the kubeconfig context namespace. If the namespace (e.g. an OTE project) was deleted, the `oc` process would fail. Pass `-n` with the resource (openshift-cluster-node-tuning-operator) namespace.
|
Skipping CI for Draft Pull Request. |
WalkthroughThe ChangesNamespace Specification in OC Template Processing
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jmencak 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 |
|
/test all |
|
PR-Agent: could not find a component named |
|
/test all |
|
PR-Agent: could not find a component named |
|
/retest |
Review Summary by QodoFix oc process command namespace scoping in NTO tests
WalkthroughsDescription• Add explicit namespace flag to oc process command • Prevents failures when kubeconfig context namespace is deleted • Ensures template processing uses NTO namespace consistently Diagramflowchart LR
A["oc process without -n flag"] -->|"uses kubeconfig context namespace"| B["Fails if context namespace deleted"]
C["oc process with -n flag"] -->|"uses explicit NTO namespace"| D["Reliable template processing"]
File Changes1. test/extended/utils/nto_util.go
|
|
@jmencak: This pull request explicitly references no jira issue. 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. |
|
@jmencak: 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. |
|
/lgtm |
|
/verified by ci/prow/e2e-aws-nto-ext |
|
@jmencak: This PR has been marked as verified by 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. |
WithoutNamespace() does not add
-n, soocused the kubeconfig context namespace. If the namespace (e.g. an OTE project) was deleted, theocprocess would fail. Pass-nwith the resource (openshift-cluster-node-tuning-operator) namespace.Resolves: openshift/release#78471 (comment)
Summary by CodeRabbit