Skip to content

Commit

Permalink
Add nullable tags to RBR
Browse files Browse the repository at this point in the history
  • Loading branch information
sallyom committed May 3, 2019
1 parent 168fd4e commit 543ba90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions authorization/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,11 @@ type UserRestriction struct {
Users []string `json:"users" protobuf:"bytes,1,rep,name=users"`

// Groups specifies a list of literal group names.
// +nullable
Groups []string `json:"groups" protobuf:"bytes,2,rep,name=groups"`

// Selectors specifies a list of label selectors over user labels.
// +nullable
Selectors []metav1.LabelSelector `json:"labels" protobuf:"bytes,3,rep,name=labels"`
}

Expand All @@ -505,9 +507,11 @@ type GroupRestriction struct {
// Groups is a list of groups used to match against an individual user's
// groups. If the user is a member of one of the whitelisted groups, the user
// is allowed to be bound to a role.
// +nullable
Groups []string `json:"groups" protobuf:"bytes,1,rep,name=groups"`

// Selectors specifies a list of label selectors over group labels.
// +nullable
Selectors []metav1.LabelSelector `json:"labels" protobuf:"bytes,2,rep,name=labels"`
}

Expand Down

0 comments on commit 543ba90

Please sign in to comment.