Skip to content

Commit

Permalink
add revive linter and fix the lint error
Browse files Browse the repository at this point in the history
Signed-off-by: duanmengkk <[email protected]>
  • Loading branch information
duanmengkk committed Sep 13, 2024
1 parent a23a865 commit 2717463
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/kubenest/controlplane/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,13 @@ func installEtcd(client clientset.Interface, name, namespace string, kubeNestCon
namespace,
constants.EtcdListenPeerPort,
)

initialClusters[index] = fmt.Sprintf("%s=%s", memberName, memberPeerURL)
}

vclabel := util.GetVirtualControllerLabel()
vcLabel := util.GetVirtualControllerLabel()
IPV6FirstFlag, err := util.IPV6First(constants.APIServerServiceSubnet)
if err != nil {
return err
}

etcdStatefulSetBytes, err := util.ParseTemplate(etcd.EtcdStatefulSet, struct {
StatefulSetName, Namespace, ImageRepository, Image, EtcdClientService, Version, VirtualControllerLabel string
CertsSecretName, EtcdPeerServiceName string
Expand All @@ -74,7 +71,7 @@ func installEtcd(client clientset.Interface, name, namespace string, kubeNestCon
Namespace: namespace,
ImageRepository: imageRepository,
Version: imageVersion,
VirtualControllerLabel: vclabel,
VirtualControllerLabel: vcLabel,
EtcdClientService: util.GetEtcdClientServerName(name),
CertsSecretName: util.GetEtcdCertName(name),
EtcdPeerServiceName: util.GetEtcdServerName(name),
Expand Down

0 comments on commit 2717463

Please sign in to comment.