K8s/IAM: Move identity.grafana.app to iam.grafana.app (#92929)

This commit is contained in:
Ryan McKinley
2024-09-05 09:43:54 +03:00
committed by GitHub
parent aae788ae46
commit 9338e40dc3
85 changed files with 142 additions and 143 deletions
@@ -15,13 +15,13 @@ import (
)
var gvrTeams = schema.GroupVersionResource{
Group: "identity.grafana.app",
Group: "iam.grafana.app",
Version: "v0alpha1",
Resource: "teams",
}
var gvrUsers = schema.GroupVersionResource{
Group: "identity.grafana.app",
Group: "iam.grafana.app",
Version: "v0alpha1",
Resource: "users",
}
@@ -42,7 +42,7 @@ func TestIntegrationRequiresDevMode(t *testing.T) {
},
})
_, err := helper.NewDiscoveryClient().ServerResourcesForGroupVersion("identity.grafana.app/v0alpha1")
_, err := helper.NewDiscoveryClient().ServerResourcesForGroupVersion("iam.grafana.app/v0alpha1")
require.Error(t, err)
}
@@ -57,7 +57,7 @@ func TestIntegrationIdentity(t *testing.T) {
featuremgmt.FlagGrafanaAPIServerWithExperimentalAPIs, // Required to start the example service
},
})
_, err := helper.NewDiscoveryClient().ServerResourcesForGroupVersion("identity.grafana.app/v0alpha1")
_, err := helper.NewDiscoveryClient().ServerResourcesForGroupVersion("iam.grafana.app/v0alpha1")
require.NoError(t, err)
t.Run("read only views", func(t *testing.T) {
@@ -72,7 +72,7 @@ func TestIntegrationIdentity(t *testing.T) {
require.JSONEq(t, `{
"items": [
{
"apiVersion": "identity.grafana.app/v0alpha1",
"apiVersion": "iam.grafana.app/v0alpha1",
"kind": "Team",
"metadata": {
"annotations": {