Correct ResourceQuota PriorityClass config example (#12055)

The LimitedResource type has the field "MatchScopes" as a sibling to
the field "Resource," but the YAML document in the example showed the
"MatchScopes" field as a child of the top-level Configuration
type. Correct the example to match the actual schema.

While we're here, swap the order of the "scopeName" and "operator"
fields used in the YAML, to make it clearer in infix style that the
operator binds the scope name to a (possibly empty) set of values.
pull/12129/head
Steven E. Harris 2019-01-08 07:21:44 -05:00 committed by Kubernetes Prow Robot
parent 610418b261
commit ef3c9ec370
1 changed files with 6 additions and 6 deletions

View File

@ -551,10 +551,10 @@ plugins:
kind: Configuration
limitedResources:
- resource: pods
matchScopes:
- operator : In
scopeName: PriorityClass
values: ["cluster-services"]
matchScopes:
- scopeName: PriorityClass
operator: In
values: ["cluster-services"]
```
Now, "cluster-services" pods will be allowed in only those namespaces where a quota object with a matching `scopeSelector` is present.
@ -562,8 +562,8 @@ For example:
```yaml
scopeSelector:
matchExpressions:
- operator : In
scopeName: PriorityClass
- scopeName: PriorityClass
operator: In
values: ["cluster-services"]
```