IAM: Add the external field to the TeamBinding spec (#112382)

* add the external field to the TeamBinding spec

* fix unit tests
This commit is contained in:
Mihai Doarna
2025-10-15 11:21:33 +03:00
committed by GitHub
parent 2b4292fcfd
commit 54c224dae7
20 changed files with 303 additions and 33 deletions
@@ -38,6 +38,7 @@ type TeamBindingSpec struct {
TeamRef TeamBindingTeamRef `json:"teamRef"`
// permission of the identity in the team
Permission TeamBindingTeamPermission `json:"permission"`
External bool `json:"external"`
}
// NewTeamBindingSpec creates a new TeamBindingSpec object.
@@ -2123,8 +2123,15 @@ func schema_pkg_apis_iam_v0alpha1_TeamBindingSpec(ref common.ReferenceCallback)
Format: "",
},
},
"external": {
SchemaProps: spec.SchemaProps{
Default: false,
Type: []string{"boolean"},
Format: "",
},
},
},
Required: []string{"subject", "teamRef", "permission"},
Required: []string{"subject", "teamRef", "permission", "external"},
},
},
Dependencies: []string{