Skip to content

Commit

Permalink
fix: bottlerocket settings taint format
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Jul 10, 2024
1 parent dc5efa7 commit 2fbb186
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/providers/amifamily/bootstrap/bottlerocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2fbb186

Please sign in to comment.