Skip to content

Fix grafana schema#263

Open
janboll wants to merge 3 commits into
mainfrom
fix-grafana-types
Open

Fix grafana schema#263
janboll wants to merge 3 commits into
mainfrom
fix-grafana-types

Conversation

@janboll

@janboll janboll commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Need to use values for parameters, cause the current approach does not work
Also delete tags, cause we do not have it as of now and it only complicates things.

Need to use values for parameters, cause the current approach does not work
Copilot AI review requested due to automatic review settings July 2, 2026 12:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the GrafanaManage pipeline step contract to support parameterized inputs via the shared Value shape (configRef/input/value) and removes tag support that is currently not used, aligning the JSON schema and Go types with the intended pipeline authoring model.

Changes:

  • Removed --tags support from grafanactl manage reconcile and stopped merging arbitrary tags into the ARM request.
  • Updated pipeline.schema.v1.json GrafanaManage step properties to use #/definitions/value and removed the tags property.
  • Updated GrafanaManageStep Go type to use Value fields (and removed Tags) to match the schema.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
tools/grafanactl/cmd/manage/options.go Removes Tags option and its CLI flag binding.
tools/grafanactl/cmd/manage/cmd.go Removes merging of user-provided tags into the Grafana ARM resource tags map.
pipelines/types/pipeline.schema.v1.json Switches GrafanaManage step fields to value references and removes tags; updates timeout typing for this step.
pipelines/types/common.go Updates GrafanaManageStep field types to Value and removes Tags to match schema.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pipelines/types/common.go Outdated
Comment on lines 766 to 768
"zoneRedundancy": {
"type": "string",
"enum": [
"Enabled",
"Disabled"
]
"$ref": "#/definitions/value"
},
Comment on lines 772 to 774
"timeout": {
"$ref": "#/definitions/durationString"
"$ref": "#/definitions/value"
},
Comment on lines 754 to +761
"grafanaName": {
"type": "string"
"$ref": "#/definitions/value"
},
"location": {
"type": "string"
"$ref": "#/definitions/value"
},
"sku": {
"type": "string"
"$ref": "#/definitions/value"
Copilot AI review requested due to automatic review settings July 3, 2026 07:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment on lines 763 to 768
"majorVersion": {
"type": "string"
"$ref": "#/definitions/value"
},
"zoneRedundancy": {
"type": "string",
"enum": [
"Enabled",
"Disabled"
]
"$ref": "#/definitions/value"
},

@raelga raelga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

@raelga raelga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

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.

3 participants