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 2717463 commit d4cd64d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/kubenest/controlplane/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ func installEtcd(client clientset.Interface, name, namespace string, kubeNestCon
initialClusters[index] = fmt.Sprintf("%s=%s", memberName, memberPeerURL)
}
vcLabel := util.GetVirtualControllerLabel()
IPV6FirstFlag, err := util.IPV6First(constants.APIServerServiceSubnet)
if err != nil {
IPV6FirstFlag, newErr := util.IPV6First(constants.APIServerServiceSubnet)
if newErr != nil {
return err
}

etcdStatefulSetBytes, err := util.ParseTemplate(etcd.EtcdStatefulSet, struct {
StatefulSetName, Namespace, ImageRepository, Image, EtcdClientService, Version, VirtualControllerLabel string
CertsSecretName, EtcdPeerServiceName string
Expand Down

0 comments on commit d4cd64d

Please sign in to comment.