Skip to content

Conversation

@AntoineThebaud
Copy link
Contributor

@AntoineThebaud AntoineThebaud commented Jan 23, 2026

Description

Provide new utilities corresponding to standard patterns observed on datasource plugins side. See the PR on /plugins side that will leverage this to see how that will simplify datasource schemas.

NB: I added some tests & had to adapt test-cue.go because the old behavior was too simplistic (it couldn't validate files that involved imports or definitions coming from other files of the same package)

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

…source plugins

Signed-off-by: AntoineThebaud <antoine.thebaud@yahoo.fr>
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/cue-common-ds branch from 2f371b3 to 90baee1 Compare January 23, 2026 23:50
@AntoineThebaud AntoineThebaud marked this pull request as ready for review January 24, 2026 00:06
proxy: #HTTPProxy & {
kind: "HTTPProxy"
spec: {
url: "https://prometheus.demo.prometheus.io"
Copy link
Member

Choose a reason for hiding this comment

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

I don't get why you are adding default value here.

Specially considering this is supposed to be used for datasource like Pyroscope. The allowedEndpoints list does not match the spec of Pyroscope.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a test file ;)

Copy link
Member

Choose a reason for hiding this comment

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

oh ... right, sorry about that. LGTM then

@AntoineThebaud AntoineThebaud merged commit fce8d16 into main Jan 26, 2026
11 checks passed
@AntoineThebaud AntoineThebaud deleted the antoinethebaud/cue-common-ds branch January 26, 2026 10:55
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.

4 participants