Skip to content

Commit 8b629ea

Browse files
authored
Merge pull request #46 from dweomer/toleration-cruft
remove toleration in controller deployment
2 parents fb3409d + b007dd4 commit 8b629ea

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

e2e/framework/controller/deployment.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,7 @@ func DeploymentWithTolerations(toleration ...corev1.Toleration) DeploymentOption
5656
}
5757

5858
func DeploymentDefaultTolerations() DeploymentOption {
59-
return DeploymentWithTolerations(
60-
corev1.Toleration{
61-
Key: corev1.TaintNodeUnschedulable,
62-
Operator: corev1.TolerationOpExists,
63-
Effect: corev1.TaintEffectNoSchedule,
64-
},
65-
)
59+
return DeploymentWithTolerations()
6660
}
6761

6862
func DeploymentWithServiceAccountName(serviceAcountName string) DeploymentOption {

manifests/system-upgrade-controller.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ spec:
5959
- matchExpressions:
6060
- {key: "node-role.kubernetes.io/master", operator: In, values: ["true"]}
6161
serviceAccountName: system-upgrade
62-
tolerations:
63-
- key: "node.kubernetes.io/unschedulable" # necessary to avoid cordon/drain
64-
operator: "Exists"
65-
effect: "NoSchedule"
6662
containers:
6763
- name: system-upgrade-controller
6864
image: rancher/system-upgrade-controller:v0.3.1

0 commit comments

Comments
 (0)