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

DependsOn resource syntax error not detected #78

Open
christoph-buente opened this issue Jan 17, 2024 · 0 comments
Open

DependsOn resource syntax error not detected #78

christoph-buente opened this issue Jan 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@christoph-buente
Copy link

christoph-buente commented Jan 17, 2024

Version: 0.3.11

What happened:

I created a catalog-info.yml file with a service that declared a dependency on a resource. However, I had a syntax error in it and backstage actually complained about it when importing. However, the validator did not.

The mistake I made was writing this:

spec:
  type: service
  lifecycle: production
  owner: team-name
  dependsOn:
    - resource/default:kinesis-stream # wrong
    - resource:default/kinesis-stream # correct

Expected behavior:

I would expect the same error message that backstage gives:
Entity reference "resource/default:kinesis-stream" had missing or empty kind (e.g. did not start with "component:" or similar)

Additional Information:

@christoph-buente christoph-buente added the bug Something isn't working label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant