Skip to content

Library should error out if kube uri is not able to resolve when parsing from byte[] #1039

Closed
devfile/library
#166
@yangcao77

Description

@yangcao77

Which area this feature is related to?

/kind bug

Which area this bug is related to?

/area library

What versions of software are you using?

Go project

Operating System and version:

Go Pkg Version:

Node.js project

Operating System and version:

Node.js version:

Yarn version:

Project.json:

Web browser

Operating System and version:

Browser name and version:

Bug Summary

Describe the bug:

Library ignore the relative kube uri if parsing from byte[].

To Reproduce:

parse from the raw content where a kube uri is defined as a relative path in the devfile, for example: https://raw.githubusercontent.com/yangcao77/go-basic-no-deploy-file/main/devfile.yaml
set ConvertKubernetesContentInUri=true

Expected behavior

Since parser is being asked to convert the kube uri to inlined, and the relative path should not able to be resolved, the parser should error out with a proper error message

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

Additional context

Any workaround?

Suggestion on how to fix the bug

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfileskind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions