You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schemaVersion: 2.0.0
metadata:
name: java-openliberty
version: 0.1.4-rc2
description: Java application stack using Open Liberty runtime
alpha.build-dockerfile: "https://raw.githubusercontent.com/OpenLiberty/application-stack/master/dev/Dockerfile"
alpha.deployment-manifest: "https://raw.githubusercontent.com/OpenLiberty/application-stack/master/dev/app-deploy.yaml"
if I do odo url create --port 9080 , the devfile will be updated/rewritten but the "alpha.build-dockerfile" and "alpha.deployment-manifest" metadata properties will be lost.
Actual behavior
Expected behavior
Expect these to be preserved.
I just skimmed the devfile spec and didn't see any other examples of optional properties, but not that familiar still.
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered:
@scottkurz@yangcao77 please pardon my lack of knowledge as far as devfile schema is concerned. I looked at the PR #3987 but what's got me confused is that why does odo url create command have to modify the devfile. My understanding is that odo url create should refer the devfile, create a URL, and store the URL info in .odo/env/env.yaml.
The PR likely fixes the issue at hands, but I'm confused if modifying devfile is the right thing to do for odo url create command. I could be totally wrong so please correct me if that's the case. 😄
The discussion in the PR #3665 might help. It was creating a lot of confusion, so we decided to move the URLs to one place and store cluster specific data like host and others in the env for each URL.
@scottkurz@yangcao77 please pardon my lack of knowledge as far as devfile schema is concerned. I looked at the PR #3987 but what's got me confused is that why does odo url create command have to modify the devfile. My understanding is that odo url create should refer the devfile, create a URL, and store the URL info in .odo/env/env.yaml.
I'm still getting up to speed here myself, (was wondering the same thing) but, I changed the java-openliberty devfile so that, by default, odo url create won't have any changes to make to the devfile when targeting Open Shift:
/kind bug
Per devfile spec schema:
https://devfile.github.io/devfile/_attachments/api-reference.html
the 'metadata' properties are optional.
Currently, in 2.0.0-beta-1, the "unknown" properties will be lost during the rewrite that happens, for example, in
odo url create ...
What versions of software are you using?
Operating System: Win 10
Output of
odo version
: 2.0.0-beta-1How did you run odo exactly?
With a devfile like: https://github.com/OpenLiberty/application-stack/blob/master/dev/devfile.yaml
if I do
odo url create --port 9080
, the devfile will be updated/rewritten but the "alpha.build-dockerfile" and "alpha.deployment-manifest" metadata properties will be lost.Actual behavior
Expected behavior
Expect these to be preserved.
I just skimmed the devfile spec and didn't see any other examples of optional properties, but not that familiar still.
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered: