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

grafanadatasource make values required #1235

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

NissesSenap
Copy link
Collaborator

Follow the grafana datasource http api with values that are required. This way we can remove some logic in code and make it easier for our users.

fixes #1035

Follow the grafana datasource http api with values that are required.
@@ -28,7 +28,7 @@ func TestGrafanaDatasources_expandVariables(t *testing.T) {
},
},
},
out: []byte("{\"name\":\"prometheus\",\"user\":\"root\"}"),
out: []byte("{\"name\":\"prometheus\",\"type\":\"\",\"url\":\"\",\"access\":\"\",\"user\":\"root\"}"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since the new values are required, the tests needed updating

@HVBE HVBE enabled auto-merge (squash) September 11, 2023 07:23
@HVBE HVBE merged commit 5ebf1f9 into grafana:master Sep 11, 2023
9 checks passed
@NissesSenap NissesSenap deleted the dashboard_access branch September 11, 2023 07:35
rlanore added a commit to rlanore/aws-observability-accelerator that referenced this pull request Dec 7, 2023
elamaran11 pushed a commit to aws-observability/aws-observability-accelerator that referenced this pull request Dec 18, 2023
url mandatory for datasource since opeator version > 5.4.0

See: grafana/grafana-operator#1235
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.

[Bug] CRD Validation is Invalid, Optional fields should be Required
2 participants