Skip to content
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

Wrong message when the metadata.name of a devfile is absent #21429

Closed
Tracked by #21438
l0rd opened this issue May 27, 2022 · 0 comments · Fixed by eclipse-che/che-dashboard#557
Closed
Tracked by #21438

Wrong message when the metadata.name of a devfile is absent #21429

l0rd opened this issue May 27, 2022 · 0 comments · Fixed by eclipse-che/che-dashboard#557
Assignees
Labels
area/che-server area/dashboard kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/next

Comments

@l0rd
Copy link
Contributor

l0rd commented May 27, 2022

Describe the bug

I have a devfile like the following one:

schemaVersion: 2.1.0
attributes:
  controller.devfile.io/storage-type: ephemeral
  controller.devfile.io/scc: container-build
components:
  - name: tilt-container
    container:
      image: quay.io/mloriedo/universal-developer-image:buildah
      memoryLimit: 1G
      memoryRequest: 256Mi
      cpuLimit: 200m
      cpuRequest: 30m

When I try to start a workspace from it I get the error:

Failed to resolve a devfile. Failed to request factory resolver: Cannot read properties of undefined (reading 'generateName')

And I have no clue how I can fix this.

Che version

next (development version)

Steps to reproduce

Open this link (dogfooding instance for Che maintainers only)

Expected behavior

I would like to see a proper error message:

metadata.name is missing from the Devfile. Please update it and retry.

Screenshots

image

@l0rd l0rd added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. area/dashboard area/che-server labels May 27, 2022
@ibuziuk ibuziuk mentioned this issue Jun 3, 2022
64 tasks
@akurinnoy akurinnoy self-assigned this Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-server area/dashboard kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/next
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants