-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Devfile] Support commands for Os/K8s tool #12479
Comments
One of the issues that exist is: what to do if OS/K8S recipe contains more then one container. |
Option 1 Use an Option 2 Use one of the filter that will be put in place by #12386 Option 3 Prompt the user from the editor when running the command to select one of the containers that match the filters/selectors These options are not mutually exclusive. Ideally we should put in place all of them. |
@l0rd Could you clarify what you mean
Could you clarify what does it mean for Devfile format? It is introducing new field in action to specify whether this action is supposed to be run in |
@sleshchenko for action#tool-selector I was thinking about something like actions:
- type: exec
tool:
name: che
selector:
name: postgres
command: psql For Option 2 nothing in the Devfile format. I hoped that #12386 would introduce filters based on container labels like |
@l0rd Thanks for clarifications. actions:
- type: exec
tool:
name: che
selector:
name: postgres
command: psql I expect from I have in mind the following way how to provide not bad UX for user with minimal afford. specVersion: 0.0.1
name: che-in-che
projects:
...
tools:
- name: theia-editor
type: cheEditor
id: org.eclipse.che.editor.theia:1.0.0
- name: che-dev
type: openshift
local: che-dev.yaml
commands:
- name: build
actions:
- type: exec
tool: che-dev
command: mvn clean install
workdir: /projects/che
- name: hello-theia
actions:
- type: exec
tool: theia-editor
command: echo Hello from Theia IDE
As for The tool contains the several containers: Implementation notes: #12386 should be merged. And Theia Tasks plugin should be reworked to propose user to choose machines from recipe sourced containers, choose plugin containers is possible as additional option. It may looks like the following: Later Devfile format may be improved to provide a user an ability to pre-configure container from Kubernetes/OpenShift tool with multiple containers. But I think we should consider implementing the described workflow as initial and simpler one. |
I would say
|
It's what I mentioned - We can easily implement it now - let's do it.
We can create another issue for
Where new fields |
Description
Now we support commands only for the ChePlugin or CheEditor tool.
We want to introduce an ability to define commands for OS/K8s tools
Like
The text was updated successfully, but these errors were encountered: