1.3.6.2. PlacementRule matchExpression が新しい matchLabel で削除されない
ポリシー PlacementRule を matchExpressions から matchLabels に更新する場合、古い matchExpression は削除されません。
以下の例は、最初のサンプルの matchExpressions が 2 つ目のサンプルで matchLabels に変更されていますが、matchExpressions は削除されません。
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: placement-policy-etcdencryption
spec:
clusterConditions:
- status: "True"
type: ManagedClusterConditionAvailable
clusterSelector:
matchExpressions:
- {key: environment, operator: In, values: ["test"]}
spec:
clusterConditions:
- status: "True"
type: ManagedClusterConditionAvailable
clusterSelector:
matchExpressions: []
matchLabel: {}