*: Fix linter warnings

Adapt to newly improved linters in golangci-lint v1.51.1

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
This commit is contained in:
Madhav Jivrajani
2023-02-07 10:59:07 +05:30
parent 64cf942ce8
commit 5e1f440d0a
4 changed files with 7 additions and 26 deletions

View File

@@ -111,7 +111,6 @@ var _ = utils.SIGDescribe("PersistentVolumes [Feature:vsphere][Feature:LabelSele
func testSetupVSpherePVClabelselector(ctx context.Context, c clientset.Interface, nodeInfo *NodeInfo, ns string, ssdlabels map[string]string, vvollabels map[string]string) (volumePath string, pvSsd *v1.PersistentVolume, pvcSsd *v1.PersistentVolumeClaim, pvcVvol *v1.PersistentVolumeClaim, err error) {
ginkgo.By("creating vmdk")
volumePath = ""
volumePath, err = nodeInfo.VSphere.CreateVolume(&VolumeOptions{}, nodeInfo.DataCenterRef)
if err != nil {
return

View File

@@ -52,9 +52,16 @@ import (
"k8s.io/kubernetes/test/integration/framework"
)
//lint:ignore U1000 we need to alias only for the sake of embedding
type kubeClientSet = kubernetes.Interface
//lint:ignore U1000 we need to alias only for the sake of embedding
type aggegatorClientSet = aggregator.Interface
//lint:ignore U1000 we need to alias only for the sake of embedding
type apiextensionsClientSet = apiextensions.Interface
//lint:ignore U1000 we need to alias only for the sake of embedding
type dynamicClientset = dynamic.Interface
type testClientSet struct {
kubeClientSet