-
Notifications
You must be signed in to change notification settings - Fork 244
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
Add parent support (devfile 2.0) to devfile #2919
Comments
@kadel I think your team has done some POC work on this before. Do you have the link to code of that POC? |
the parser got merged so we are unblocked |
Not at this time. We can consider it in the future, but there will be problems like what to do if odo is using docker mode etc... For this reason, I would defer this for now and just focus just on
No, we don't need to keep the parent devfile. |
|
What is the rational for adding this constraint. This will become very restrictive and we'll end up with lots of copy/paste of information all over devfiles. I think we should reconsider this. |
Need answers on devfile/api#25 (comment) to move further smoothly without being blocked. |
This function might help in merging the structs. The directive can be added as https://github.com/kubernetes/api/blob/fd326d3007d39ad678622b2b4185892ec853aac2/core/v1/types.go#L2180. |
FYI / my notes, this is a good example on how a parent should be implemented / used within the Devfile: https://raw.githubusercontent.com/devfile/kubernetes-api/master/devfile-support/samples/with-nodejs-parent.devfile.yaml schemaVersion: 2.0.0
metadata:
name: with-parent
parent:
uri: https://raw.githubusercontent.com/che-incubator/devworkspace-api/proposal-25-variant-1-define-stacks/devfile-support/samples/nodejs-stack.devfile.yaml
projects:
- name: example
git:
branch: 'mybranch'
commands:
- exec:
id: sayHello
label: Say Hello
commandLine: echo "hello"
component: nodejs |
/kind user-story
User Story
As a devfile developer, I would like use the new devfile 2.0 support to set the parent of a devfile (devfile/api#25)
Acceptance Criteria
parent
specified, load the devfile and the parent to generate a merged devfile to be used by odoLinks
/kind user-story
/area devfile
The text was updated successfully, but these errors were encountered: