Closed skabashnyuk closed 5 years ago
The issue that Che Plugin Broker is run in a different way than k8s/os internal runtime. The solution is add
for (Secret secret : brokerEnvironment.getSecrets().values()) {
namespace.secrets().create(secret);
}
The same is done for K8s/OS runtime here https://github.com/eclipse/che/blob/78976298b0a2e9dcc82f68c89886499eeb10e1b7/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInternalRuntime.java#L670-L675
Looks like the issue had affected OpenShift oAuth integration in Eclipse Che being deployed to OKD using the command:
bash ${WORKSPACE}/deploy/openshift/ocp.sh --run-ocp --deploy-che --multiuser --setup-ocp-oauth
@dmytro-ndp Thanks for reporting your case, actually the error is the same but the cause is different:
ocp.sh
server + Che Server templates inconsistency.
I think that my PR does not solve your case: please create a separate issue if it still actual.
Description
A secret with cert body isn't created but che-plugin-broker pod is configured to use it
Follow up of https://github.com/eclipse/che/issues/12634#issuecomment-491847421