Skip to content

Commit

Permalink
chore: disable staticcheck unused on utils
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Oct 20, 2023
1 parent 61b0cba commit 6ea5cc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func getTestManifest(t *testing.T, baseManifestPath string, skipTestPatches bool
// extractVersionFromImage extracts semver of image from image tag. If tag is not given,
// or is not in a semver format, it returns an error.
// for example: kong/kubernetes-ingress-controller:2.9.3 => semver.Version{Major:2,Minor:9,Patch:3}.
// //lint:ignore U1000 retained for future use
func extractVersionFromImage(imageName string) (semver.Version, error) { //nolint:unused
split := strings.Split(imageName, ":")
if len(split) < 2 {
Expand All @@ -179,6 +180,7 @@ func extractVersionFromImage(imageName string) (semver.Version, error) { //nolin
// below the minVersion.
// if the override KIC image is not set, it assumes that the latest image is used, so it never skips
// the test if override image is not given.
// //lint:ignore U1000 retained for future use
func skipTestIfControllerVersionBelow(t *testing.T, minVersion semver.Version) { //nolint:unused
if testenv.ControllerImageTag() == "" {
return
Expand Down Expand Up @@ -231,6 +233,7 @@ func patchControllerImageFromEnv(t *testing.T, manifestReader io.Reader) (io.Rea

// getKongVersionFromOverrideTag parses Kong version from env effective version or override tag. The effective version
// takes precedence.
// //lint:ignore U1000 retained for future use
func getKongVersionFromOverrideTag() (kong.Version, error) { //nolint:unused
if kongEffectiveVersion := testenv.KongEffectiveVersion(); kongEffectiveVersion != "" {
return kong.ParseSemanticVersion(kongEffectiveVersion)
Expand Down

0 comments on commit 6ea5cc0

Please sign in to comment.