set empty nodeselect to nil (#799)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1m10s
Post / coverage (push) Failing after 26m1s
Post / images (amd64) (push) Failing after 6m59s
Post / images (arm64) (push) Failing after 6m48s
Post / image manifest (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped

Signed-off-by: Zhiwei Yin <zyin@redhat.com>
This commit is contained in:
Zhiwei Yin
2025-01-14 18:04:51 +08:00
committed by GitHub
parent 970a1a2cbe
commit 5df279f2d1

View File

@@ -20,7 +20,7 @@ type ClusterManagerChartConfig struct {
// Resources is the resource requirements of the operator deployment
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
// NodeSelector is the nodeSelector of the operator deployment
NodeSelector corev1.NodeSelector `json:"nodeSelector,omitempty"`
NodeSelector *corev1.NodeSelector `json:"nodeSelector,omitempty"`
// Tolerations is the tolerations of the operator deployment
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// Affinity is the affinity of the operator deployment
@@ -47,7 +47,7 @@ type KlusterletChartConfig struct {
// Resources is the resource requirements of the operator deployment
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
// NodeSelector is the nodeSelector of the operator deployment
NodeSelector corev1.NodeSelector `json:"nodeSelector,omitempty"`
NodeSelector *corev1.NodeSelector `json:"nodeSelector,omitempty"`
// Tolerations is the tolerations of the operator deployment
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// Affinity is the affinity of the operator deployment