Skip to content
Permalink
Browse files

Update label selectors caution about OR operator (#17477)

  • Loading branch information
christophercarney authored and k8s-ci-robot committed Nov 12, 2019
1 parent aa61310 commit 66243a6dc255cf84dff06c7ddb00e19e2d8c5759
Showing with 4 additions and 0 deletions.
  1. +4 −0 content/en/docs/concepts/overview/working-with-objects/labels.md
@@ -92,6 +92,10 @@ them.
For some API types, such as ReplicaSets, the label selectors of two instances must not overlap within a namespace, or the controller can see that as conflicting instructions and fail to determine how many replicas should be present.
{{< /note >}}

{{< caution >}}
For both equality-based and set-based conditions there is no logical _OR_ (`||`) operator. Ensure your filter statements are structured accordingly.
{{< /caution >}}

### _Equality-based_ requirement

_Equality-_ or _inequality-based_ requirements allow filtering by label keys and values. Matching objects must satisfy all of the specified label constraints, though they may have additional labels as well.

0 comments on commit 66243a6

Please sign in to comment.
You can’t perform that action at this time.