updated generated files

This commit is contained in:
MikeSpreitzer 2019-11-13 16:45:38 +00:00 committed by Mike Spreitzer
parent bb69b93b20
commit 1c60949dfd
7 changed files with 161 additions and 130 deletions

View File

@ -14274,8 +14274,12 @@
"type": "array",
"x-kubernetes-list-type": "set"
},
"clusterScope": {
"description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.",
"type": "boolean"
},
"namespaces": {
"description": "`namespaces` is a list of target namespaces that restricts matches. A request that does not specify a target namespace (which happens both when the resource is not namespaced and when the resource is namespaced and the request is for all namespaces) matches only if this list includes \"Cluster Scope\" (this string is not a valid namespace and thus can not be confused with an actual namespace). A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\".\n\nThis list may not be omitted or empty. If the list contains \"*\" then the only other allowed member is \"Cluster Scope\". Without \"*\", it is allowed to list \"Cluster Scope\" along with particular namespaces.\n\nRequests will match only if the values in this list are appropriate for the resource(s) involved. For example: for a cluster scoped resource (i.e., one not namespaced) a request can match only if this list contains \"Cluster Scope\". It is entirely up to the client to populate this list with appropriate values; the server-performed validation does not (at least in this alpha) address this issue.",
"description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.",
"items": {
"type": "string"
},
@ -14302,8 +14306,7 @@
"required": [
"verbs",
"apiGroups",
"resources",
"namespaces"
"resources"
],
"type": "object"
},

View File

@ -697,6 +697,7 @@ func autoConvert_v1alpha1_ResourcePolicyRule_To_flowcontrol_ResourcePolicyRule(i
out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs))
out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups))
out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources))
out.ClusterScope = in.ClusterScope
out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces))
return nil
}
@ -710,6 +711,7 @@ func autoConvert_flowcontrol_ResourcePolicyRule_To_v1alpha1_ResourcePolicyRule(i
out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs))
out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups))
out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources))
out.ClusterScope = in.ClusterScope
out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces))
return nil
}

View File

@ -431,9 +431,9 @@ func TestFlowSchemaValidation(t *testing.T) {
},
ResourceRules: []flowcontrol.ResourcePolicyRule{
{
Verbs: []string{flowcontrol.VerbAll},
APIGroups: []string{flowcontrol.APIGroupAll},
Resources: []string{flowcontrol.ResourceAll},
Verbs: []string{flowcontrol.VerbAll},
APIGroups: []string{flowcontrol.APIGroupAll},
Resources: []string{flowcontrol.ResourceAll},
ClusterScope: true,
},
},
@ -464,11 +464,11 @@ func TestFlowSchemaValidation(t *testing.T) {
},
ResourceRules: []flowcontrol.ResourcePolicyRule{
{
Verbs: []string{flowcontrol.VerbAll},
APIGroups: []string{flowcontrol.APIGroupAll},
Resources: []string{flowcontrol.ResourceAll},
Verbs: []string{flowcontrol.VerbAll},
APIGroups: []string{flowcontrol.APIGroupAll},
Resources: []string{flowcontrol.ResourceAll},
ClusterScope: true,
Namespaces: []string{flowcontrol.NamespaceEvery},
Namespaces: []string{flowcontrol.NamespaceEvery},
},
},
},

View File

@ -689,95 +689,96 @@ func init() {
}
var fileDescriptor_45ba024d525b289b = []byte{
// 1400 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xdd, 0x6e, 0xd4, 0xc6,
0x17, 0x8f, 0x37, 0xbb, 0x49, 0x76, 0x42, 0x3e, 0xfe, 0x93, 0x3f, 0xca, 0x36, 0x48, 0xbb, 0xa9,
0x2b, 0x15, 0x28, 0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xee,
0x2d, 0xd8, 0x6e, 0x55, 0x66, 0xb3, 0x2a, 0xd4, 0x15, 0x41, 0x37, 0xc1, 0x74, 0xc7, 0x11, 0x87,
0xbf, 0x8e, 0x96, 0xf1, 0xf2, 0xa0, 0x3c, 0xf6, 0xea, 0xa0, 0x3c, 0xf6, 0xfa, 0xa0, 0x3c, 0xf6,
0x63, 0xbb, 0xac, 0xbd, 0x6c, 0x97, 0xb5, 0x57, 0xed, 0xb2, 0xf6, 0xba, 0x5d, 0xd6, 0xde, 0xb4,
0xcb, 0xda, 0xf3, 0x3f, 0xcb, 0x63, 0x0f, 0xa7, 0xe2, 0xd4, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff,
0x94, 0x08, 0x88, 0x43, 0x92, 0x12, 0x00, 0x00,
// 1424 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcd, 0x6e, 0xdb, 0x46,
0x10, 0x36, 0x65, 0xc9, 0x96, 0xd6, 0xbf, 0x5d, 0x27, 0xb0, 0xea, 0x00, 0x92, 0xcb, 0x02, 0x4d,
0xd2, 0x24, 0x64, 0x9c, 0xa6, 0x69, 0x8a, 0x20, 0x08, 0x4c, 0x07, 0xcd, 0x9f, 0xed, 0xda, 0xab,
0x24, 0x45, 0x83, 0x14, 0x08, 0x4d, 0xad, 0xa9, 0x8d, 0x25, 0x92, 0xdd, 0x25, 0x95, 0xba, 0xc8,
0xa1, 0x40, 0x5f, 0x20, 0x0f, 0x90, 0x07, 0xe8, 0x4b, 0x14, 0xe8, 0x31, 0x28, 0x7a, 0xc8, 0x31,
0x27, 0x21, 0x56, 0xaf, 0x7d, 0x80, 0x36, 0xa7, 0x62, 0x97, 0x4b, 0x52, 0xd4, 0x8f, 0x25, 0xd7,
0x40, 0x4e, 0xbd, 0x91, 0x33, 0xf3, 0x7d, 0x33, 0x3b, 0x3b, 0xb3, 0x33, 0xe0, 0xf6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x17, 0x7f, 0x96, 0xc6, 0x1e, 0xe5,
0xa3, 0xd0, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x6e, 0xc8, 0x30, 0xbf, 0xcc, 0x12, 0x00, 0x00,
}
func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) {
@ -1586,9 +1587,17 @@ func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
copy(dAtA[i:], m.Namespaces[iNdEx])
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespaces[iNdEx])))
i--
dAtA[i] = 0x22
dAtA[i] = 0x2a
}
}
i--
if m.ClusterScope {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x20
if len(m.Resources) > 0 {
for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.Resources[iNdEx])
@ -2068,6 +2077,7 @@ func (m *ResourcePolicyRule) Size() (n int) {
n += 1 + l + sovGenerated(uint64(l))
}
}
n += 2
if len(m.Namespaces) > 0 {
for _, s := range m.Namespaces {
l = len(s)
@ -2383,6 +2393,7 @@ func (this *ResourcePolicyRule) String() string {
`Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`,
`APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
`Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
`ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`,
`Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`,
`}`,
}, "")
@ -4861,6 +4872,26 @@ func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error {
m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.ClusterScope = bool(v != 0)
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType)
}

View File

@ -377,31 +377,25 @@ message ResourcePolicyRule {
// +listType=set
repeated string resources = 3;
// `clusterScope` indicates whether to match requests that do not
// specify a namespace (which happens either because the resource
// is not namespaced or the request targets all namespaces).
// If this field is omitted or false then the `namespaces` field
// must contain a non-empty list.
// +optional
optional bool clusterScope = 4;
// `namespaces` is a list of target namespaces that restricts
// matches. A request that does not specify a target namespace
// (which happens both when the resource is not namespaced and
// when the resource is namespaced and the request is for all
// namespaces) matches only if this list includes "Cluster Scope"
// (this string is not a valid namespace and thus can not be
// confused with an actual namespace). A request that specifies a
// target namespace matches only if either (a) this list contains
// that target namespace or (b) this list contains "*".
//
// This list may not be omitted or empty. If the list contains
// "*" then the only other allowed member is "Cluster Scope".
// Without "*", it is allowed to list "Cluster Scope" along with
// particular namespaces.
//
// Requests will match only if the values in this list are
// appropriate for the resource(s) involved. For example: for a
// cluster scoped resource (i.e., one not namespaced) a request
// can match only if this list contains "Cluster Scope". It is
// entirely up to the client to populate this list with
// appropriate values; the server-performed validation does not
// (at least in this alpha) address this issue.
//
// matches. A request that specifies a target namespace matches
// only if either (a) this list contains that target namespace or
// (b) this list contains "*". Note that "*" matches any
// specified namespace but does not match a request that _does
// not specify_ a namespace (see the `clusterScope` field for
// that).
// This list may be empty, but only if `clusterScope` is true.
// +optional
// +listType=set
repeated string namespaces = 4;
repeated string namespaces = 5;
}
// ServiceAccountSubject holds detailed information for service-account-kind subject.

View File

@ -28,7 +28,7 @@ const (
NonResourceAll = "*"
NameAll = "*"
NamespaceEvery = "*" // matches every particular namespace
NamespaceEvery = "*" // matches every particular namespace
)
// System preset priority level names
@ -246,7 +246,7 @@ type ResourcePolicyRule struct {
// must contain a non-empty list.
// +optional
ClusterScope bool `json:"clusterScope,omitempty" protobuf:"varint,4,opt,name=clusterScope"`
// `namespaces` is a list of target namespaces that restricts
// matches. A request that specifies a target namespace matches
// only if either (a) this list contains that target namespace or

View File

@ -215,11 +215,12 @@ func (QueuingConfiguration) SwaggerDoc() map[string]string {
}
var map_ResourcePolicyRule = map[string]string{
"": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request.",
"verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.",
"apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.",
"resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.",
"namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that does not specify a target namespace (which happens both when the resource is not namespaced and when the resource is namespaced and the request is for all namespaces) matches only if this list includes \"Cluster Scope\" (this string is not a valid namespace and thus can not be confused with an actual namespace). A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\".\n\nThis list may not be omitted or empty. If the list contains \"*\" then the only other allowed member is \"Cluster Scope\". Without \"*\", it is allowed to list \"Cluster Scope\" along with particular namespaces.\n\nRequests will match only if the values in this list are appropriate for the resource(s) involved. For example: for a cluster scoped resource (i.e., one not namespaced) a request can match only if this list contains \"Cluster Scope\". It is entirely up to the client to populate this list with appropriate values; the server-performed validation does not (at least in this alpha) address this issue.",
"": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request.",
"verbs": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.",
"apiGroups": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.",
"resources": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.",
"clusterScope": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.",
"namespaces": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.",
}
func (ResourcePolicyRule) SwaggerDoc() map[string]string {