Fixed listType annotations for API Priority and Fairness

We were occasionally seeing

```
[SHOULD NOT HAPPEN] failed to create typed new object: .spec.rules: element 0: associative list without keys has an element that's a map type
```

So I changed all the listType annotations to `atomic` except when the
element type is a scalar, which is the only case supported right now.
This commit is contained in:
Mike Spreitzer
2020-01-29 16:43:13 -05:00
parent dba8d60f8c
commit 4940e42b92
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",