IAM: Implement create method for team bindings (#112003)

* implement create method for team bindings

* generate openapi specs

* enable dual writer for team bindings

* add validation rules

* generate openapi

* add integration tests and fix remaining issues

* fix validation test

* use UIDs instead of IDs to build team binding name

* use IDs when generating the TeamBinding name

* fix build error

* remove time truncate
This commit is contained in:
Mihai Doarna
2025-10-14 17:20:59 +03:00
committed by GitHub
parent aeb041a9af
commit 7395f803c1
34 changed files with 1494 additions and 124 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: iam.grafana.app/v0alpha1
kind: Team
metadata:
name: test-team-1
name: testteam1
spec:
title: "Test Team 1"
email: testteam1@example123.com
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: iam.grafana.app/v0alpha1
kind: Team
metadata:
name: test-team-1
name: testteam1
spec:
title: "Test Team 2"
email: testteam2@example123.com
@@ -0,0 +1,10 @@
apiVersion: iam.grafana.app/v0alpha1
kind: TeamBinding
metadata:
name: test-team-binding-1
spec:
subject:
name: ""
teamRef:
name: ""
permission: "admin"