Skip to content

Commit e39058d

Browse files
authored
Update labels.md
add a new line
1 parent b01ce83 commit e39058d

File tree

1 file changed

+2
-0
lines changed
  • content/zh/docs/concepts/overview/working-with-objects

1 file changed

+2
-0
lines changed

content/zh/docs/concepts/overview/working-with-objects/labels.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,15 @@ partition
231231
* The second example selects all resources with key equal to `tier` and values other than `frontend` and `backend`, and all resources with no labels with the `tier` key.
232232
* The third example selects all resources including a label with key `partition`; no values are checked.
233233
* The fourth example selects all resources without a label with key `partition`; no values are checked.
234+
234235
Similarly the comma separator acts as an _AND_ operator. So filtering resources with a `partition` key (no matter the value) and with `environment` different than  `qa` can be achieved using `partition,environment notin (qa)`.
235236
-->
236237
237238
* 第一个示例选择了所有键等于 `environment` 并且值等于 `production` 或者 `qa` 的资源。
238239
* 第二个示例选择了所有键等于 `tier` 并且值不等于 `frontend` 或者 `backend` 的资源,以及所有没有 `tier` 键标签的资源。
239240
* 第三个示例选择了所有包含了有 `partition` 标签的资源;没有校验它的值。
240241
* 第四个示例选择了所有没有 `partition` 标签的资源;没有校验它的值。
242+
241243
类似地,逗号分隔符充当 _与_ 运算符。因此,使用 `partition` 键(无论为何值)和
242244
`environment` 不同于 `qa` 来过滤资源可以使用 `partition, environment notin(qa)` 来实现。
243245

0 commit comments

Comments
 (0)