diff --git a/pkg/providers/amifamily/bootstrap/bottlerocket.go b/pkg/providers/amifamily/bootstrap/bottlerocket.go index c8454342ba91..f7dbddd1b9e3 100644 --- a/pkg/providers/amifamily/bootstrap/bottlerocket.go +++ b/pkg/providers/amifamily/bootstrap/bottlerocket.go @@ -77,8 +77,7 @@ func (b Bottlerocket) Script() (string, error) { s.Settings.Kubernetes.NodeTaints = map[string][]string{} for _, taint := range b.Taints { - s.Settings.Kubernetes.NodeTaints[taint.Key] = append(s.Settings.Kubernetes.NodeTaints[taint.Key], fmt.Sprintf("%s%s", - lo.Ternary(taint.Value == "", "", taint.Value+":"), taint.Effect)) + s.Settings.Kubernetes.NodeTaints[taint.Key] = append(s.Settings.Kubernetes.NodeTaints[taint.Key], fmt.Sprintf("%s:%s", taint.Value, taint.Effect)) } script, err := s.MarshalTOML() if err != nil {