Merge pull request #87676 from MikeSpreitzer/apf-fix-list-types

Fixed listType annotations for API Priority and Fairness
This commit is contained in:
Kubernetes Prow Robot 2020-01-30 17:00:07 -08:00 committed by GitHub
commit 78a69f54e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 18 deletions

View File

@ -11041,7 +11041,7 @@
"$ref": "#/definitions/io.k8s.api.flowcontrol.v1alpha1.FlowSchema"
},
"type": "array",
"x-kubernetes-list-type": "set"
"x-kubernetes-list-type": "atomic"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@ -11086,7 +11086,7 @@
"$ref": "#/definitions/io.k8s.api.flowcontrol.v1alpha1.PolicyRulesWithSubjects"
},
"type": "array",
"x-kubernetes-list-type": "set"
"x-kubernetes-list-type": "atomic"
}
},
"required": [
@ -11199,7 +11199,7 @@
"$ref": "#/definitions/io.k8s.api.flowcontrol.v1alpha1.NonResourcePolicyRule"
},
"type": "array",
"x-kubernetes-list-type": "set"
"x-kubernetes-list-type": "atomic"
},
"resourceRules": {
"description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.",
@ -11207,7 +11207,7 @@
"$ref": "#/definitions/io.k8s.api.flowcontrol.v1alpha1.ResourcePolicyRule"
},
"type": "array",
"x-kubernetes-list-type": "set"
"x-kubernetes-list-type": "atomic"
},
"subjects": {
"description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.",
@ -11215,7 +11215,7 @@
"$ref": "#/definitions/io.k8s.api.flowcontrol.v1alpha1.Subject"
},
"type": "array",
"x-kubernetes-list-type": "set"
"x-kubernetes-list-type": "atomic"
}
},
"required": [
@ -11295,7 +11295,7 @@
"$ref": "#/definitions/io.k8s.api.flowcontrol.v1alpha1.PriorityLevelConfiguration"
},
"type": "array",
"x-kubernetes-list-type": "set"
"x-kubernetes-list-type": "atomic"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",

View File

@ -84,7 +84,7 @@ message FlowSchemaList {
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
// `items` is a list of FlowSchemas.
// +listType=set
// +listType=atomic
repeated FlowSchema items = 2;
}
@ -110,7 +110,7 @@ message FlowSchemaSpec {
// `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if
// at least one member of rules matches the request.
// if it is an empty slice, there will be no requests matching the FlowSchema.
// +listType=set
// +listType=atomic
// +optional
repeated PolicyRulesWithSubjects rules = 4;
}
@ -210,20 +210,20 @@ message PolicyRulesWithSubjects {
// subjects is the list of normal user, serviceaccount, or group that this rule cares about.
// There must be at least one member in this slice.
// A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request.
// +listType=set
// +listType=atomic
// Required.
repeated Subject subjects = 1;
// `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the
// target resource.
// At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
// +listType=set
// +listType=atomic
// +optional
repeated ResourcePolicyRule resourceRules = 2;
// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
// and the target non-resource URL.
// +listType=set
// +listType=atomic
// +optional
repeated NonResourcePolicyRule nonResourceRules = 3;
}
@ -275,7 +275,7 @@ message PriorityLevelConfigurationList {
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
// `items` is a list of request-priorities.
// +listType=set
// +listType=atomic
repeated PriorityLevelConfiguration items = 2;
}

View File

@ -84,7 +84,7 @@ type FlowSchemaList struct {
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// `items` is a list of FlowSchemas.
// +listType=set
// +listType=atomic
Items []FlowSchema `json:"items" protobuf:"bytes,2,rep,name=items"`
}
@ -107,7 +107,7 @@ type FlowSchemaSpec struct {
// `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if
// at least one member of rules matches the request.
// if it is an empty slice, there will be no requests matching the FlowSchema.
// +listType=set
// +listType=atomic
// +optional
Rules []PolicyRulesWithSubjects `json:"rules,omitempty" protobuf:"bytes,4,rep,name=rules"`
}
@ -152,18 +152,18 @@ type PolicyRulesWithSubjects struct {
// subjects is the list of normal user, serviceaccount, or group that this rule cares about.
// There must be at least one member in this slice.
// A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request.
// +listType=set
// +listType=atomic
// Required.
Subjects []Subject `json:"subjects" protobuf:"bytes,1,rep,name=subjects"`
// `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the
// target resource.
// At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
// +listType=set
// +listType=atomic
// +optional
ResourceRules []ResourcePolicyRule `json:"resourceRules,omitempty" protobuf:"bytes,2,opt,name=resourceRules"`
// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
// and the target non-resource URL.
// +listType=set
// +listType=atomic
// +optional
NonResourceRules []NonResourcePolicyRule `json:"nonResourceRules,omitempty" protobuf:"bytes,3,opt,name=nonResourceRules"`
}
@ -350,7 +350,7 @@ type PriorityLevelConfigurationList struct {
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// `items` is a list of request-priorities.
// +listType=set
// +listType=atomic
Items []PriorityLevelConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"`
}