1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 21:00:16 +00:00

Merge pull request #1030 from rmweir/gr-auth-groups

Add groups to GRBs
This commit is contained in:
Dan Ramich
2019-11-25 14:43:17 -08:00
committed by GitHub
2 changed files with 26 additions and 23 deletions

View File

@@ -74,8 +74,9 @@ type GlobalRoleBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
UserName string `json:"userName,omitempty" norman:"required,type=reference[user]"`
GlobalRoleName string `json:"globalRoleName,omitempty" norman:"required,noupdate,type=reference[globalRole]"`
UserName string `json:"userName,omitempty" norman:"noupdate,type=reference[user]"`
GroupPrincipalName string `json:"groupPrincipalName,omitempty" norman:"noupdate,type=reference[principal]"`
GlobalRoleName string `json:"globalRoleName,omitempty" norman:"required,noupdate,type=reference[globalRole]"`
}
type RoleTemplate struct {

View File

@@ -5,31 +5,33 @@ import (
)
const (
GlobalRoleBindingType = "globalRoleBinding"
GlobalRoleBindingFieldAnnotations = "annotations"
GlobalRoleBindingFieldCreated = "created"
GlobalRoleBindingFieldCreatorID = "creatorId"
GlobalRoleBindingFieldGlobalRoleID = "globalRoleId"
GlobalRoleBindingFieldLabels = "labels"
GlobalRoleBindingFieldName = "name"
GlobalRoleBindingFieldOwnerReferences = "ownerReferences"
GlobalRoleBindingFieldRemoved = "removed"
GlobalRoleBindingFieldUUID = "uuid"
GlobalRoleBindingFieldUserID = "userId"
GlobalRoleBindingType = "globalRoleBinding"
GlobalRoleBindingFieldAnnotations = "annotations"
GlobalRoleBindingFieldCreated = "created"
GlobalRoleBindingFieldCreatorID = "creatorId"
GlobalRoleBindingFieldGlobalRoleID = "globalRoleId"
GlobalRoleBindingFieldGroupPrincipalID = "groupPrincipalId"
GlobalRoleBindingFieldLabels = "labels"
GlobalRoleBindingFieldName = "name"
GlobalRoleBindingFieldOwnerReferences = "ownerReferences"
GlobalRoleBindingFieldRemoved = "removed"
GlobalRoleBindingFieldUUID = "uuid"
GlobalRoleBindingFieldUserID = "userId"
)
type GlobalRoleBinding struct {
types.Resource
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
GlobalRoleID string `json:"globalRoleId,omitempty" yaml:"globalRoleId,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
UserID string `json:"userId,omitempty" yaml:"userId,omitempty"`
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
GlobalRoleID string `json:"globalRoleId,omitempty" yaml:"globalRoleId,omitempty"`
GroupPrincipalID string `json:"groupPrincipalId,omitempty" yaml:"groupPrincipalId,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
UserID string `json:"userId,omitempty" yaml:"userId,omitempty"`
}
type GlobalRoleBindingCollection struct {