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}