Skip to content

Commit

Permalink
modify taint
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevent-fei committed Dec 6, 2022
1 parent 76c943c commit 1773a79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/infradriver/ssh_infradriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ func mergeList(hostEnv, globalEnv map[string]interface{}) map[string]interface{}
return hostEnv
}

func convertTaints(Taints []string) ([]k8sv1.Taint, error) {
var taints []k8sv1.Taint
for _, taint := range Taints {
func convertTaints(taints []string) ([]k8sv1.Taint, error) {
var k8staints []k8sv1.Taint
for _, taint := range taints {
data, err := formatData(taint)
if err != nil {
return nil, err
}
taints = append(taints, data)
k8staints = append(k8staints, data)
}
return taints, nil
return k8staints, nil
}

func copyEnv(origin map[string]interface{}) map[string]interface{} {
Expand Down

0 comments on commit 1773a79

Please sign in to comment.