Skip to content

Commit

Permalink
add nullable fields for RoleBindingRestriction
Browse files Browse the repository at this point in the history
  • Loading branch information
sallyom committed Apr 10, 2019
1 parent 87f97e6 commit afa1ad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions authorization/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,15 @@ type RoleBindingRestriction struct {
// field must be non-nil.
type RoleBindingRestrictionSpec struct {
// UserRestriction matches against user subjects.
// +nullable
UserRestriction *UserRestriction `json:"userrestriction" protobuf:"bytes,1,opt,name=userrestriction"`

// GroupRestriction matches against group subjects.
// +nullable
GroupRestriction *GroupRestriction `json:"grouprestriction" protobuf:"bytes,2,opt,name=grouprestriction"`

// ServiceAccountRestriction matches against service-account subjects.
// +nullable
ServiceAccountRestriction *ServiceAccountRestriction `json:"serviceaccountrestriction" protobuf:"bytes,3,opt,name=serviceaccountrestriction"`
}

Expand Down

0 comments on commit afa1ad6

Please sign in to comment.