In content/en/docs/how-tos/crp.md, the PickN affinity example shows:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 20
preference:
- labelSelector:
matchLabels:
critical-level: 1
The preference field is typed as ClusterSelectorTerm (a single struct, not a slice) per apis/placement/v1/clusterresourceplacement_types.go. It should not have a leading -. The correct form is:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 20
preference:
labelSelector:
matchLabels:
critical-level: "1"
In
content/en/docs/how-tos/crp.md, the PickN affinity example shows:The
preferencefield is typed asClusterSelectorTerm(a single struct, not a slice) perapis/placement/v1/clusterresourceplacement_types.go. It should not have a leading-. The correct form is: