Change taint key per review comment

This commit is contained in:
John Gardiner Myers 2020-01-03 10:07:21 -08:00
parent 97ad2c3b54
commit cba59afac4
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ import (
"k8s.io/kops/upup/pkg/fi" "k8s.io/kops/upup/pkg/fi"
) )
const rollingUpdateTaintKey = "kops.k8s.io/rolling-update" const rollingUpdateTaintKey = "kops.k8s.io/scheduled-for-update"
// RollingUpdateInstanceGroup is the AWS ASG backing an InstanceGroup. // RollingUpdateInstanceGroup is the AWS ASG backing an InstanceGroup.
type RollingUpdateInstanceGroup struct { type RollingUpdateInstanceGroup struct {

View File

@ -39,7 +39,7 @@ import (
const ( const (
cordonPatch = "{\"spec\":{\"unschedulable\":true}}" cordonPatch = "{\"spec\":{\"unschedulable\":true}}"
taintPatch = "{\"spec\":{\"taints\":[{\"effect\":\"PreferNoSchedule\",\"key\":\"kops.k8s.io/rolling-update\"}]}}" taintPatch = "{\"spec\":{\"taints\":[{\"effect\":\"PreferNoSchedule\",\"key\":\"kops.k8s.io/scheduled-for-update\"}]}}"
) )
func getTestSetup() (*RollingUpdateCluster, awsup.AWSCloud, *kopsapi.Cluster, map[string]*cloudinstances.CloudInstanceGroup) { func getTestSetup() (*RollingUpdateCluster, awsup.AWSCloud, *kopsapi.Cluster, map[string]*cloudinstances.CloudInstanceGroup) {