Skip to content

Commit

Permalink
Merge pull request #2 from grafana/1-remove-confusing-properties
Browse files Browse the repository at this point in the history
feat: Remove confusing properties
  • Loading branch information
szkiba authored Jul 17, 2024
2 parents 5e8b5f3 + b588232 commit 037e928
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 52 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,17 @@ The `true` value of the `official` flag indicates that the extension is official
{
"module": "github.com/grafana/xk6-dashboard",
"description": "Web-based metrics dashboard for k6",
"outputs": ["dashboard"],
"official": true
"outputs": ["dashboard"]
},
{
"module": "github.com/grafana/xk6-sql",
"description": "Load test SQL Servers",
"imports": ["k6/x/sql"],
"official": true
"imports": ["k6/x/sql"]
},
{
"module": "github.com/grafana/xk6-distruptor",
"description": "Inject faults to test",
"imports": ["k6/x/distruptor"],
"official": true
"imports": ["k6/x/distruptor"]
},
{
"module": "github.com/szkiba/xk6-faker",
Expand Down
9 changes: 3 additions & 6 deletions example.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
{
"module": "github.com/grafana/xk6-dashboard",
"description": "Web-based metrics dashboard for k6",
"outputs": ["dashboard"],
"official": true
"outputs": ["dashboard"]
},
{
"module": "github.com/grafana/xk6-sql",
"description": "Load test SQL Servers",
"imports": ["k6/x/sql"],
"official": true
"imports": ["k6/x/sql"]
},
{
"module": "github.com/grafana/xk6-distruptor",
"description": "Inject faults to test",
"imports": ["k6/x/distruptor"],
"official": true
"imports": ["k6/x/distruptor"]
},
{
"module": "github.com/szkiba/xk6-faker",
Expand Down
2 changes: 1 addition & 1 deletion registry.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package k6registry contains the data model of the k6 extensions registry.
package k6registry

//go:generate go run github.com/atombender/[email protected] -p k6registry --only-models -o registry_gen.go registry.schema.yaml
//go:generate sh -c "go run github.com/mikefarah/yq/[email protected] -o=json -P registry.schema.yaml > registry.schema.json"
//go:generate go run github.com/atombender/[email protected] -p k6registry --only-models -o registry_gen.go registry.schema.yaml
//go:generate go run github.com/szkiba/[email protected] update
10 changes: 0 additions & 10 deletions registry.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@
]
]
},
"official": {
"type": "boolean",
"default": "false",
"description": "Officially supported extension flag.\n\nA value of true indicates that the extension is officially supported by Grafana. Extensions owned by the `grafana` GitHub organization are not officially supported by Grafana by default.\n"
},
"cloud": {
"type": "boolean",
"default": "false",
"description": "Cloud-enabled extension flag.\n\nA value of true indicates that the extension is also available in the Grafana k6 cloud.\n"
},
"description": {
"type": "string",
"description": "Brief description of the extension.\n"
Expand Down
14 changes: 0 additions & 14 deletions registry.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,6 @@ $defs:
examples:
- ["dashboard"]
- ["plugin"]
official:
type: boolean
default: "false"
description: |
Officially supported extension flag.
A value of true indicates that the extension is officially supported by Grafana. Extensions owned by the `grafana` GitHub organization are not officially supported by Grafana by default.
cloud:
type: boolean
default: "false"
description: |
Cloud-enabled extension flag.
A value of true indicates that the extension is also available in the Grafana k6 cloud.
description:
type: string
description: |
Expand Down
15 changes: 0 additions & 15 deletions registry_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 037e928

Please sign in to comment.