Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-4514

Allow Dev Spaces users use template.template.openshift.io out of the box

XMLWordPrintable

      Description of problem:

       

      It's not possible to process/apply OpenShift Template in vanilla Dev Spaces installation

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       - Use following OpenShift template:

       

      kind: Template
      apiVersion: template.openshift.io/v1
      objects:
        - kind: Secret
          apiVersion: v1
          metadata:
            labels:
              app: template-reproducer
            name: template-reproducer
          stringData:
            TEST: ${TEST}
      parameters:
        - name: TEST
          displayName: Source Broker Username
          description: The username to use for the connection to Source Broker.
          required: true 

      And try to process it like this (as normal user, not cluster-admin:

       

       

       

      oc process -f template.yaml -p TEST=test | oc create -f -
      error: unable to process template
        processedtemplates.template.openshift.io is forbidden: User "user1" cannot create resource "processedtemplates" in API group "template.openshift.io" in the namespace "user1-dev"
      error: no objects passed to create

       

       

       

       

      Actual results:

       

      processing/applying openshift template fails

      Expected results:

      process/applying openshift template works out of the box

      Reproducibility (Always/Intermittent/Only Once):

      always

      Acceptance criteria: 

      appropriate role binding is configured ootb to allow "*" to OpenShift Template :
      kind: Template
      apiVersion: template.openshift.io/v1
       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

            mloriedo Mario Loriedo
            rhn-support-agiertli Anton Giertli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: