mirror of https://github.com/kubernetes/kops.git
Fix verify-golangci-lint
This commit is contained in:
parent
26963ddd17
commit
689462af01
|
@ -37,7 +37,7 @@ func checkParse(t *testing.T, s string, expect map[string]string, shouldErr bool
|
|||
if shouldErr {
|
||||
return
|
||||
}
|
||||
t.Errorf(err.Error())
|
||||
t.Errorf("%s", err.Error())
|
||||
}
|
||||
|
||||
for k, v := range expect {
|
||||
|
|
|
@ -74,7 +74,7 @@ func TestToVersionedYaml(t *testing.T) {
|
|||
actual = strings.TrimSpace(actual)
|
||||
expected := strings.TrimSpace(g.expected)
|
||||
if actual != expected {
|
||||
t.Logf(diff.FormatDiff(actual, expected))
|
||||
t.Log(diff.FormatDiff(actual, expected))
|
||||
t.Errorf("actual != expected")
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ func TestToVersionedYaml(t *testing.T) {
|
|||
actual = strings.TrimSpace(actual)
|
||||
expected := strings.TrimSpace(g.expected)
|
||||
if actual != expected {
|
||||
t.Logf(diff.FormatDiff(actual, expected))
|
||||
t.Log(diff.FormatDiff(actual, expected))
|
||||
t.Errorf("actual != expected")
|
||||
continue
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ func TestToVersionedJSON(t *testing.T) {
|
|||
actual := string(actualBytes)
|
||||
actual = strings.TrimSpace(actual)
|
||||
if actual != g.expected {
|
||||
t.Logf(diff.FormatDiff(actual, g.expected))
|
||||
t.Log(diff.FormatDiff(actual, g.expected))
|
||||
t.Errorf("actual != expected")
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -441,8 +441,8 @@ func matches(l, r *compute.InstanceTemplate) bool {
|
|||
if klog.V(10).Enabled() {
|
||||
ls := fi.DebugAsJsonStringIndent(normalizedL)
|
||||
rs := fi.DebugAsJsonStringIndent(normalizedR)
|
||||
klog.V(10).Infof("Not equal")
|
||||
klog.V(10).Infof(diff.FormatDiff(ls, rs))
|
||||
klog.V(10).Info("Not equal")
|
||||
klog.V(10).Info(diff.FormatDiff(ls, rs))
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ func CreateValidScalewayProfile() (*scw.Profile, error) {
|
|||
} else {
|
||||
errMsg += " in a Scaleway profile or as an environment variable"
|
||||
}
|
||||
return nil, fmt.Errorf(errMsg)
|
||||
return nil, fmt.Errorf("%s", errMsg)
|
||||
}
|
||||
|
||||
return &profile, nil
|
||||
|
|
|
@ -127,7 +127,7 @@ func (e *executor[T]) RunTasks(ctx context.Context, taskMap map[string]Task[T])
|
|||
if err != nil {
|
||||
// print warning message and continue like the task succeeded
|
||||
if _, ok := err.(*ExistsAndWarnIfChangesError); ok {
|
||||
klog.Warningf(err.Error())
|
||||
klog.Warning(err.Error())
|
||||
ts.done = true
|
||||
ts.lastError = nil
|
||||
progress = true
|
||||
|
|
Loading…
Reference in New Issue