-
Bug
-
Resolution: Done
-
Critical
-
openshift-4.6
-
False
-
False
-
Undefined
-
Not Supported
-
ODC Sprint 192
-
Moderate
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
- import the attached template to openshift namespace
- in your own namespace go to dev catalog
- search for template `test`
- instantiate the template
- from topology, right click and select "Edit <name>"
- 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;
}