Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-24460

oc process command fails while running it with a template file

    XMLWordPrintable

Details

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      This is a clone of issue OCPBUGS-24375. The following is the description of the original issue:

      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:

          

      Attachments

        Issue Links

          Activity

            People

              aguclu@redhat.com Arda Guclu
              openshift-crt-jira-prow OpenShift Prow Bot
              Rama Kasturi Narra Rama Kasturi Narra
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: