feat: node affinity definitions incorrect
The nodeaffinity definitions where not correct which was causing a
validation failure on the manager deployments.
@@ -32,11 +32,14 @@ spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
+ - weight: 10
+ preference:
+ matchExpressions:
- key: ${K8S_CP_LABEL:=node-role.kubernetes.io/control-plane}
operator: Exists
# remove once usage of node-role.kubernetes.io/master is removed from Kubernetes
- - matchExpressions:
+ - weight: 10
+ preference:
+ matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
