Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5017

unable to edit custom template application

XMLWordPrintable

    • False
    • False
    • Undefined
    • Not Supported
    • ODC Sprint 192
    • Medium

      Description of problem:

      Unable to edit a custom template instance that mimics our import flow resources.

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

      Steps to Reproduce

      1. import the attached template to openshift namespace
      2. in your own namespace go to dev catalog
      3. search for template `test`
      4. instantiate the template
      5. from topology, right click and select "Edit <name>"
      6. Save the form

      Actual results:

      Error "Invalid value: 0x0: must be specified for an update" for field "metadata.resourceVersion".

      Another resource error failing to update the DeploymentConfig:

      Error "Invalid value: map[string]string{"app":"python-app", "deploymentconfig":"python-app", "template":"ds-python", "template.openshift.io/template-instance-owner":"adc66902-24ff-4439-af34-e4127c220966"}: `selector` does not match template `labels`" for field "spec.template.metadata.labels".

      Expected results:

      No Error.

      Reproducibility (Always/Intermittent/Only Once):

      always

      Build Details:

      4.6.0-0.nightly-2020-10-03-051134

      Additional info:

      The DeploymentConfig error is due to `resource-label-utils.ts`, where the selector and the template labels do not match.

      if (mergedData.spec?.template?.metadata?.labels) {
        mergedData.spec.template.metadata.labels = newResource.spec?.template?.metadata?.labels;
      }
      

            divgupta Divyanshi Gupta
            christianvogt Christian Vogt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: