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

allow project local generate to work with no kinds defined #461

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

dafydd-t
Copy link
Contributor

@dafydd-t dafydd-t commented Nov 6, 2024

Motivation: I wanted to adopt the grafana-app-sdk tooling and structure for an existing plugin because we have plans to introduce some custom Kinds there. However, in the spirit of smaller changes, I wanted to restructure the project without adding custom Kinds. You can see my example here.

This PR shows what I needed to be able to make use of grafana-app-sdk project local generate when I didn't have any custom kinds defined.

I couldn't see a nice way to refactor the cue generator to gracefully handle the lack of a cue module (and it didn't feel right), so I added this none format which indicates that we don't have any kinds defined.

Happy to be guided on this, I mainly made this PR as a discussion point. But I'd love to be able to have this functionality.

@dafydd-t dafydd-t marked this pull request as ready for review November 14, 2024 16:23
@dafydd-t dafydd-t requested a review from a team as a code owner November 14, 2024 16:23
@radiohead radiohead merged commit b4c6011 into main Nov 15, 2024
9 checks passed
@radiohead radiohead deleted the allow-no-kinds branch November 15, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants