grafana-iam: Remove Version from Role Spec (#117219)

* `grafana-iam`: Remove Version from Role Spec

* Fix openapi
This commit is contained in:
Gabriel MABILLE 2026-02-03 11:54:15 +01:00 committed by GitHub
parent b980c80d0b
commit 3d4cffaeab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 3 additions and 47 deletions

View file

@ -11,8 +11,6 @@ RoleSpec: {
// Display name of the role
title: string
description: string
version: int
group: string
permissions: [...#Permission]

View file

@ -20,7 +20,6 @@ type CoreRoleSpec struct {
// Display name of the role
Title string `json:"title"`
Description string `json:"description"`
Version int64 `json:"version"`
Group string `json:"group"`
// TODO:
// delegatable?: bool

View file

@ -20,7 +20,6 @@ type GlobalRoleSpec struct {
// Display name of the role
Title string `json:"title"`
Description string `json:"description"`
Version int64 `json:"version"`
Group string `json:"group"`
// TODO:
// delegatable?: bool

View file

@ -20,7 +20,6 @@ type RoleSpec struct {
// Display name of the role
Title string `json:"title"`
Description string `json:"description"`
Version int64 `json:"version"`
Group string `json:"group"`
// TODO:
// delegatable?: bool

View file

@ -202,13 +202,6 @@ func schema_pkg_apis_iam_v0alpha1_CoreRoleSpec(ref common.ReferenceCallback) com
Format: "",
},
},
"version": {
SchemaProps: spec.SchemaProps{
Default: 0,
Type: []string{"integer"},
Format: "int64",
},
},
"group": {
SchemaProps: spec.SchemaProps{
Default: "",
@ -231,7 +224,7 @@ func schema_pkg_apis_iam_v0alpha1_CoreRoleSpec(ref common.ReferenceCallback) com
},
},
},
Required: []string{"title", "description", "version", "group", "permissions"},
Required: []string{"title", "description", "group", "permissions"},
},
},
Dependencies: []string{
@ -1282,13 +1275,6 @@ func schema_pkg_apis_iam_v0alpha1_GlobalRoleSpec(ref common.ReferenceCallback) c
Format: "",
},
},
"version": {
SchemaProps: spec.SchemaProps{
Default: 0,
Type: []string{"integer"},
Format: "int64",
},
},
"group": {
SchemaProps: spec.SchemaProps{
Default: "",
@ -1311,7 +1297,7 @@ func schema_pkg_apis_iam_v0alpha1_GlobalRoleSpec(ref common.ReferenceCallback) c
},
},
},
Required: []string{"title", "description", "version", "group", "permissions"},
Required: []string{"title", "description", "group", "permissions"},
},
},
Dependencies: []string{
@ -2124,13 +2110,6 @@ func schema_pkg_apis_iam_v0alpha1_RoleSpec(ref common.ReferenceCallback) common.
Format: "",
},
},
"version": {
SchemaProps: spec.SchemaProps{
Default: 0,
Type: []string{"integer"},
Format: "int64",
},
},
"group": {
SchemaProps: spec.SchemaProps{
Default: "",
@ -2153,7 +2132,7 @@ func schema_pkg_apis_iam_v0alpha1_RoleSpec(ref common.ReferenceCallback) common.
},
},
},
Required: []string{"title", "description", "version", "group", "permissions"},
Required: []string{"title", "description", "group", "permissions"},
},
},
Dependencies: []string{

View file

@ -6137,7 +6137,6 @@
"required": [
"title",
"description",
"version",
"group",
"permissions"
],
@ -6161,11 +6160,6 @@
"description": "Display name of the role",
"type": "string",
"default": ""
},
"version": {
"type": "integer",
"format": "int64",
"default": 0
}
}
},
@ -6756,7 +6750,6 @@
"required": [
"title",
"description",
"version",
"group",
"permissions"
],
@ -6780,11 +6773,6 @@
"description": "Display name of the role",
"type": "string",
"default": ""
},
"version": {
"type": "integer",
"format": "int64",
"default": 0
}
}
},
@ -7233,7 +7221,6 @@
"required": [
"title",
"description",
"version",
"group",
"permissions"
],
@ -7257,11 +7244,6 @@
"description": "Display name of the role",
"type": "string",
"default": ""
},
"version": {
"type": "integer",
"format": "int64",
"default": 0
}
}
},