diff --git a/e2e/utils.go b/e2e/utils.go index b5586490d..0098a6528 100644 --- a/e2e/utils.go +++ b/e2e/utils.go @@ -1479,15 +1479,13 @@ func validateController( return deleteResource(rbdExamplePath + "storageclass.yaml") } +// nolint:deadcode,unused // Unused code will be used in future. // k8sVersionGreaterEquals checks the ServerVersion of the Kubernetes cluster // and compares it to the major.minor version passed. In case the version of // the cluster is equal or higher to major.minor, `true` is returned, `false` // otherwise. -// // If fetching the ServerVersion of the Kubernetes cluster fails, the calling // test case is marked as `FAILED` and gets aborted. -// -// nolint:unparam // currently major is always 1, this can change in the future func k8sVersionGreaterEquals(c kubernetes.Interface, major, minor int) bool { v, err := c.Discovery().ServerVersion() if err != nil {