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

Datasources as CRDs #9

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

jgbernalp
Copy link
Contributor

This PR adds Perses Datasources as CRDs:

  • Adds the CR definitions based on Perses Datasources Types
  • Adds a datasource controller and tests

@jgbernalp jgbernalp force-pushed the datasources-as-crds branch 2 times, most recently from 789d819 to 41ef95c Compare February 20, 2024 08:49
@jgbernalp
Copy link
Contributor Author

Draft because Requires #8

@jgbernalp jgbernalp mentioned this pull request Mar 12, 2024
@jgbernalp jgbernalp force-pushed the datasources-as-crds branch 2 times, most recently from d92e69a to a7e99e3 Compare March 26, 2024 11:41
@jgbernalp jgbernalp marked this pull request as ready for review March 26, 2024 13:02
)

type Datasource struct {
persesv1.Datasource `json:",inline"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't a bit weird to put the complete datasource object ?

The datasource object also contains the metadata struct and probably each overlap don't you think ?

How about putting instead DatasourceSpec ? That would be the same thing for the dashboard. Using DashboardSpec instead of the object Dashboard from Perses

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed is more clear that way, I created #10 to fix also the dashboards

Signed-off-by: Gabriel Bernal <[email protected]>
@jgbernalp jgbernalp merged commit 4ccf03f into perses:main Apr 2, 2024
5 checks passed
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