Skip to content

Commit 07dad9b

Browse files
authored
chore: remove PluginOrderingVersionCutoff & TLSPassthroughCutoff checks (#4795)
1 parent 7e37282 commit 07dad9b

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

internal/versions/versions.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ var (
1414
// ExplicitRegexPathVersionCutoff is the lowest Kong version requiring the explicit "~" prefixes in regular expression paths.
1515
ExplicitRegexPathVersionCutoff = semver.Version{Major: 3, Minor: 0}
1616

17-
// PluginOrderingVersionCutoff is the Kong version prior to the addition of plugin ordering.
18-
PluginOrderingVersionCutoff = semver.Version{Major: 3}
19-
2017
// ConsumerGroupsVersionCutoff is the Kong version prior to the addition of Consumer Groups as first class citizens.
2118
ConsumerGroupsVersionCutoff = semver.Version{Major: 3, Minor: 4}
2219

test/integration/plugin_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2121

2222
"github.com/kong/kubernetes-ingress-controller/v2/internal/annotations"
23-
"github.com/kong/kubernetes-ingress-controller/v2/internal/versions"
2423
kongv1 "github.com/kong/kubernetes-ingress-controller/v2/pkg/apis/configuration/v1"
2524
"github.com/kong/kubernetes-ingress-controller/v2/pkg/clientset"
2625
"github.com/kong/kubernetes-ingress-controller/v2/test"
@@ -160,7 +159,6 @@ func TestPluginEssentials(t *testing.T) {
160159
func TestPluginOrdering(t *testing.T) {
161160
t.Parallel()
162161

163-
RunWhenKongVersion(t, fmt.Sprintf(">=%s", versions.PluginOrderingVersionCutoff))
164162
RunWhenKongEnterprise(t)
165163

166164
ctx := context.Background()

test/integration/tcpingress_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222

2323
"github.com/kong/kubernetes-ingress-controller/v2/internal/annotations"
24-
"github.com/kong/kubernetes-ingress-controller/v2/internal/versions"
2524
kongv1beta1 "github.com/kong/kubernetes-ingress-controller/v2/pkg/apis/configuration/v1beta1"
2625
"github.com/kong/kubernetes-ingress-controller/v2/pkg/clientset"
2726
"github.com/kong/kubernetes-ingress-controller/v2/test"
@@ -310,8 +309,6 @@ func TestTCPIngressTLSPassthrough(t *testing.T) {
310309
// after determining why the gateway is discarding these requests and applying any necessary fixes.
311310
// RunWhenKongExpressionRouter(t)
312311

313-
RunWhenKongVersion(t, fmt.Sprintf(">=%s", versions.TLSPassthroughCutoff))
314-
315312
t.Log("locking Gateway TLS ports")
316313
tlsMutex.Lock()
317314
t.Cleanup(func() {

0 commit comments

Comments
 (0)