ResourceSyncRulePropertiesSelector interface
标签选择器由两个部分组成:matchLabels 和 matchExpressions。 第一部分 matchLabels 是 {key,value} 对的映射。 matchLabels 映射中的单个 {key,value} 等效于 matchExpressions 的元素,其键字段为“key”,运算符为“In”,值数组仅包含“value”。 第二部分 matchExpressions 是资源选择器要求的列表。 有效运算符包括 In、NotIn、Exists 和 DoesNotExist。 在 In 和 NotIn 的情况下,设置的值必须为非空。 在 Exists 和 DoesNotExist 的情况下,设置的值必须为空。 从 matchLabels 和 matchExpressions 的所有要求都必须满足才能匹配。
属性
| match |
MatchExpressions 是资源选择器要求的列表。 有效运算符包括 In、NotIn、Exists 和 DoesNotExist。 在 In 和 NotIn 的情况下,设置的值必须为非空。 在 Exists 和 DoesNotExist 的情况下,设置的值必须为空。 |
| match |
MatchLabels 是 {key,value} 对的映射。 matchLabels 映射中的单个 {key,value} 等效于 matchExpressions 的元素,其键字段为“key”,运算符为“In”,值数组仅包含“value”。 |
属性详细信息
matchExpressions
MatchExpressions 是资源选择器要求的列表。 有效运算符包括 In、NotIn、Exists 和 DoesNotExist。 在 In 和 NotIn 的情况下,设置的值必须为非空。 在 Exists 和 DoesNotExist 的情况下,设置的值必须为空。
matchExpressions?: MatchExpressionsProperties[]
属性值
matchLabels
MatchLabels 是 {key,value} 对的映射。 matchLabels 映射中的单个 {key,value} 等效于 matchExpressions 的元素,其键字段为“key”,运算符为“In”,值数组仅包含“value”。
matchLabels?: {[propertyName: string]: string}
属性值
{[propertyName: string]: string}