Skip to content

Commit 172bf01

Browse files
authored
Merge pull request #8396 from joelsmith/k8smaster
Fix balancer & CA kwok build / govet errors
2 parents 13dde43 + bf12ae2 commit 172bf01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

balancer/pkg/controller/conditions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func setConditionsBasedOnError(balancer *v1alpha1.Balancer, err *BalancerError,
3232
} else {
3333
balancer.Status.Conditions = setConditionInList(balancer.Status.Conditions,
3434
now, v1alpha1.BalancerConditionRunning, metav1.ConditionFalse,
35-
string(err.phase), err.Error())
35+
string(err.phase), "%s", err.Error())
3636
}
3737
}
3838

cluster-autoscaler/cloudprovider/clusterapi/clusterapi_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"context"
2121
"encoding/json"
2222
"fmt"
23-
"k8s.io/apimachinery/pkg/types"
2423
"math/rand"
2524
"path"
2625
"reflect"
@@ -36,6 +35,7 @@ import (
3635
"k8s.io/apimachinery/pkg/labels"
3736
"k8s.io/apimachinery/pkg/runtime"
3837
"k8s.io/apimachinery/pkg/runtime/schema"
38+
"k8s.io/apimachinery/pkg/types"
3939
"k8s.io/apimachinery/pkg/util/wait"
4040
fakediscovery "k8s.io/client-go/discovery/fake"
4141
"k8s.io/client-go/dynamic"

cluster-autoscaler/cloudprovider/kwok/kwok_nodegroups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
klog "k8s.io/klog/v2"
3030
)
3131

32-
var (
32+
const (
3333
sizeIncreaseMustBePositiveErr = "size increase must be positive"
3434
maxSizeReachedErr = "size increase too large"
3535
minSizeReachedErr = "min size reached, nodes will not be deleted"

0 commit comments

Comments
 (0)