diff --git a/pkg/manager/agent.go b/pkg/manager/agent.go index 1ed26fbc0..9aa810b71 100644 --- a/pkg/manager/agent.go +++ b/pkg/manager/agent.go @@ -69,8 +69,8 @@ func (a *AgentDaemonSet) Create(image string, managerURL string) error { NodeSelector: a.sbm.getNodeSelector(), Tolerations: []corev1.Toleration{ { - Key: types.DrainKey, - Value: "scheduling", + Key: types.KubevirtDrainKey, + Operator: corev1.TolerationOpExists, }, { Key: corev1.TaintNodeUnschedulable, diff --git a/pkg/types/types.go b/pkg/types/types.go index 68f91b965..26d69cc14 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -15,7 +15,7 @@ const ( // labels SupportBundleLabelKey = "rancher/supportbundle" - DrainKey = "kubevirt.io/drain" + KubevirtDrainKey = "kubevirt.io/drain" SupportBundleManager = "support-bundle-manager" SupportBundleAgent = "support-bundle-agent"