Exception when importing devfile with kubernetes component including a Deployment with environment variables referencing secrets #18508
Labels
area/che-server
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Describe the bug
An exception occurs when trying to import a devfile that references a kubernets component file including a Deployment that defines environment variables on the container template that reference a Secret. The following error is displayed on the factory UI:
And after clicking OK:
As a workaround, removing the reference to the Secret and setting the environment variable value directly solves the problem.
Che version
Eclipse Che 7.22.0 and CodeReady Workspaces 2.5.0.GA :: crw_2.5/20 :: che-dev @ 9348 (19) :: che-parent @ a6dd7f (7.15.0) :: che @ 7a66a (7.20.2-SNAPSHOT) :: codeready-workspaces @ a1180 (2.5.0.GA)
Steps to reproduce
Use the following devfile contents:
The referenced file postgrestql-customers.yaml would have the following contents:
This file is an instantiation of the postgresql-ephemeral template from OCP, changing the DeploymentConfig into a Deployment object for CodeReady Workspaces to accept it.
Expected behavior
The objects defined in the postgresql-customers.yaml file for the postgresql-customers kubernetes component get created correctly.
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Reproduced in https://che.openshift.io and CodeReady Workspaces 2.5.0 in OCP 4.6.4.
Screenshots
Installation method
chectl version
commandOperatorHub for CodeReady Workspaces 2.5.0 in OCP 4.6.4
Environment
Reproduced in https://che.openshift.io and CodeReady Workspaces 2.5.0 in OCP 4.6.4.
Eclipse Che Logs
Obtained from CodeReady Workspaces 2.5.0 in OCP 4.6.4.
The text was updated successfully, but these errors were encountered: