-
Notifications
You must be signed in to change notification settings - Fork 63
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
Update ODC's Devfile Library version #1136
Comments
@maysunfaisal we can also consider introducing a new parser arg to disable downloading from parent devfiles, especially if ODC is not relying on these artifacts right now (download by default so it doesn't change existing behaviour). |
This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 60 days. |
I think this issue is still work in progress and the PR is under review |
@maysunfaisal I've tested locally your branch of console and I was able to create an application for each one of our samples:
|
@maysunfaisal my main concern is when I'm trying to parse a new sample:
This error comes from here: https://github.com/openshift/console/blob/master/pkg/devfile/handler.go#L55. From what I can understand this error comes from the As a result, I'm not able to test your update against a new version of a sample that will have multiple components using the same port. |
Adding a |
@maysunfaisal update for comment #1136 (comment): TL:DR Steps to reproduce
parent:
id: go
registryUrl: 'https://registry.devfile.io'
version: 2.1.0
components:
- name: deploy
attributes:
deployment/replicas: 1
deployment/cpuRequest: 10m
deployment/memoryRequest: 10Mi
deployment/container-port: 8080
kubernetes:
uri: kubernetes/deploy.yaml
endpoints:
- name: http-8080
targetPort: 8080
path: /
Why this is happening?
Workarounds
parent:
id: go
registryUrl: 'https://registry.devfile.io'
version: 2.1.0
components:
- name: build
image:
imageName: go-image:latest
dockerfile:
uri: https://github.com/thepetk/devfile-sample-go-basic/blob/main/docker/Dockerfile
buildContext: .
rootRequired: false
- name: deploy
attributes:
deployment/replicas: 1
deployment/cpuRequest: 10m
deployment/memoryRequest: 10Mi
deployment/container-port: 8080
kubernetes:
uri: https://github.com/thepetk/devfile-sample-go-basic/blob/main/kubernetes/deploy.yaml
endpoints:
- name: http-8080
targetPort: 8080
path: / I've tried locally the second workaround and now with the update version of library, we are able to build applications with consistent ports. |
This is not a blocker anymore as the scope of the blocked item has changed. |
@maysunfaisal closing as the related PR was merged |
Back ported to Openshift 4.15 openshift/console#13762 Did not proceed with back port to Openshift 4.14 because the updates for non-devfiles related go modules were a bit more significant than my liking for a "back port". |
Which area/kind this issue is related to?
/area library
Issue Description
Update to a newer version of devfile/library on ODC.
This issue should also
Target Date: Mar 31, 2024
The text was updated successfully, but these errors were encountered: