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:
+1
-1
@@ -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
@@ -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"
|
||||
Reference in New Issue
Block a user