Skip to content

Commit

Permalink
auth: add UserKind and GroupKind consts
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Jun 13, 2019
1 parent 9c4ae3c commit f36001e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions authorization/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ import (
// 4. all allow RoleBinding PolicyRules in the namespace - short circuit on match
// 5. deny by default

const (
// GroupKind is string representation of kind used in role binding subjects that represents the "group".
GroupKind = "Group"
// UserKind is string representation of kind used in role binding subjects that represents the "user".
UserKind = "User"
)

// PolicyRule holds information that describes a policy rule, but does not contain information
// about who the rule applies to or which namespace the rule applies to.
type PolicyRule struct {
Expand Down

0 comments on commit f36001e

Please sign in to comment.