From afa1ad6c327ea7e93fbda92fe9ad7bcf3b309a55 Mon Sep 17 00:00:00 2001 From: Sally O'Malley Date: Wed, 10 Apr 2019 13:20:21 -0400 Subject: [PATCH] add nullable fields for RoleBindingRestriction --- authorization/v1/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/authorization/v1/types.go b/authorization/v1/types.go index df165f6cdc5..3e619df0a7d 100644 --- a/authorization/v1/types.go +++ b/authorization/v1/types.go @@ -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"` }