Description of problem:
oc process command fails while running it with a template file
Version-Release number of selected component (if applicable):
4.12.41
How reproducible:
100%
Steps to Reproduce:
1. Create a new project and a template file $ oc new-project test $ oc get template httpd-example -n openshift -o yaml > /tmp/template_http.yaml 2. Run oc process command as given below $ oc process -f /tmp/template_http.yaml error: unable to process template: the namespace of the provided object does not match the namespace sent on the request 3. When we run this command as a template from other namespace it runs fine. $ oc process openshift//httpd-example 4. $ oc version Client Version: 4.12.41 Kustomize Version: v4.5.7 Server Version: 4.12.42 Kubernetes Version: v1.25.14+bcb9a60
Actual results:
$ oc process -f /tmp/template_http.yaml error: unable to process template: the namespace of the provided object does not match the namespace sent on the request
Expected results:
Command should display the output of resources it will create
Additional info:
- blocks
-
OCPBUGS-24460 oc process command fails while running it with a template file
- Closed
- is cloned by
-
OCPBUGS-24460 oc process command fails while running it with a template file
- Closed
-
OCPBUGS-24461 oc process command fails while running it with a template file
- Closed
-
OCPBUGS-24462 oc process command fails while running it with a template file
- Closed
- links to
-
RHSA-2023:7198 OpenShift Container Platform 4.15 security update