]
Martin Malina commented on JBIDE-24796:
---------------------------------------
So the main issue here is that the Minishift Home value for a cdk 3 server adapter is not
taken into account at all.
JBIDE-24447 was about using MINISHIFT_HOME from your system environment and using it for
your cdk 3 server adapter. But that's only the first part. This value then needs to be
used when calling minishift version, minishift start etc. - if I edit the Launch config to
add the MINISHIFT_HOME variable there, server start then works for me. But the openshift
connection will still try to connect as openshift-dev which is probably the default
inherited from cdk 2 - it seems to me that the tooling failed to retrieve this config from
$MINISHIFT_HOME/...
Starting of CDK 3 Server Adapter with Minishift Home that differs
from ~/.minishift prevents OS tooling to create proper connection and links it to default
project
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-24796
URL:
https://issues.jboss.org/browse/JBIDE-24796
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdk, openshift
Affects Versions: 4.5.0.Final
Environment: Fedora
Reporter: Ondrej Dockal
Priority: Critical
Attachments: cdk3_sa-manual_wrong-mhome2.png
In the first case I would understand that if you change you minishift home (in server
editor) and then you start server adapter, you will get some mess... Although, I would
like to see a validation of minishift home here. We are checking minishit binary, why not
to check minishift home (in this case for existence of the folder). See
!cdk3_sa-manual_wrong-mhome2.png|thumbnail!
In the second case comes the bug. Even if I have set MINISHIFT_HOME folder, called
setup-cdk that configured everything in that folder and put this folder as Minishift Home,
CDK3 Server Adapter is not respecting that location. Or it is maybe OS tooling, not sure
here. Solution here would be a check that verifies minishift's home set in CDK server
editor corresponds with the one that minishift binary uses. If it is possible( from the
side of binary)
Cc: [~adietish] [~rob.stryker].