-
Notifications
You must be signed in to change notification settings - Fork 44
Cannot bind project to appsody stacks in the built-in Kabanero repo #1645
Comments
/area portal |
This is a scenario that has not been coded for, do you have any thoughts on how this should work ? |
If a repo is added from IDE via the Template sources manager, it will go through all the proper code paths to add it to both Codewind and the appsody CLIs (both local IDE copy and one in PFE) This was implemented in #564. So I think we would need to programatically add the Kabanero repo this way, rather than hardcoding it. |
@makandre - From what you said above it sounds like the Kabanero templates need something to be run outside PFE (ie the appsody client on the users machine)? If so the best fix it probably to remove the kabanero repo from PFE and have the IDE's add it when they make a new connection. We can't do anything in PFE that affects the users machine outside the container. I'll tag the ui plugins in as well because this probably needs discussing with them at techtopics. Can all the UI plugins run the right appsody commands to initialise the templates? (Is appsody supported in all the different IDEs?) |
@hhellyer When IDE calls |
@makandre - Ok, that's simpler. The comment in #1645 (comment) implied there was work to do when we added template repositories as well. |
@makandre - I've done some more investigation and I think the problem is an interaction between the kabanero template list and the appsody extension. With all but the Kabanero template repository disabled api/v1/project-types returns no project types:
This is what the VSCode plugin uses to populate the project types you can bind to. We also see this message in the PFE logs:
This is because The templates in the Appsody repository define The problem boils down to not knowing which repository in Appsody each Kabanero template belongs to. Most of the Appsody templates all seem to be in
and this generates a list of types from the appsody extensions but doesn't when we disable the appsody repository and the others. I can resolve this by changing the definition of the kabanero repo here: Since this needs someone with more Appsody/Kabanero knowledge to resolve I'm going to assign it to area/extensions to decide how this interaction between the Kabanero repo and the Appsody extension should be resolved. |
True, adding an |
Codewind version: 0.7.0
OS:
Che version:
IDE extension version:
IDE version:
Kubernetes cluster:
Description:
(using VSCode)
No
This is the followup issue to #1068. The way that the kabanero repo is hardcoded here means that it is only known to Codewind but not the appsody CLI. So when the list of stacks is queried from the appsody CLI, it returns nothing
Workaround:
The text was updated successfully, but these errors were encountered: