Skip to content

Commit

Permalink
fix staticcheck and lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om committed Apr 25, 2024
1 parent 8e58481 commit b7feed5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion controllers/apps/operations/switchover_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/apecloud/kubeblocks/pkg/controller/instanceset"
"strings"

"github.com/pkg/errors"
Expand All @@ -36,6 +35,7 @@ import (
appsv1alpha1 "github.com/apecloud/kubeblocks/apis/apps/v1alpha1"
"github.com/apecloud/kubeblocks/pkg/constant"
"github.com/apecloud/kubeblocks/pkg/controller/component"
"github.com/apecloud/kubeblocks/pkg/controller/instanceset"
intctrlutil "github.com/apecloud/kubeblocks/pkg/controllerutil"
)

Expand Down
10 changes: 5 additions & 5 deletions pkg/testutil/apps/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const (
ServiceVPCName = "vpc-lb"
ServiceInternetName = "internet-lb"

ReplicationPodRoleVolume = "pod-role"
ReplicationRoleLabelFieldPath = "metadata.labels['kubeblocks.io/role']"
DefaultReplicationReplicas = 2
ReplicationPodRoleVolume = "pod-role"
ReplicationRoleLabelFieldPath = "metadata.labels['kubeblocks.io/role']"
DefaultReplicationReplicas = 2

ApeCloudMySQLImage = "docker.io/apecloud/apecloud-mysql-server:latest"
DefaultMySQLContainerName = "mysql"
Expand All @@ -54,8 +54,8 @@ const (
DefaultRedisContainerName = "redis"
DefaultRedisInitContainerName = "redis-init-container"

EnvKeyImageTag = "IMAGE_TAG"
DefaultImageTag = "test"
EnvKeyImageTag = "IMAGE_TAG"
DefaultImageTag = "test"

DefaultConfigSpecName = "config-cm"
DefaultConfigSpecTplRef = "env-from-config-tpl"
Expand Down
1 change: 1 addition & 0 deletions pkg/testutil/k8s/pod_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package testutil
import (
"context"
"fmt"

"github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down

0 comments on commit b7feed5

Please sign in to comment.