@@ -36,7 +36,6 @@ import (
36
36
"k8s.io/apimachinery/pkg/types"
37
37
"k8s.io/apimachinery/pkg/util/intstr"
38
38
"k8s.io/apimachinery/pkg/util/uuid"
39
- utilversion "k8s.io/apimachinery/pkg/util/version"
40
39
"k8s.io/apimachinery/pkg/util/wait"
41
40
"k8s.io/client-go/dynamic"
42
41
clientset "k8s.io/client-go/kubernetes"
@@ -77,8 +76,6 @@ const (
77
76
addedLabelValue = "yes"
78
77
)
79
78
80
- var serverWebhookVersion = utilversion .MustParseSemantic ("v1.8.0" )
81
-
82
79
var _ = SIGDescribe ("AdmissionWebhook" , func () {
83
80
var context * certContext
84
81
f := framework .NewDefaultFramework ("webhook" )
@@ -92,15 +89,6 @@ var _ = SIGDescribe("AdmissionWebhook", func() {
92
89
client = f .ClientSet
93
90
namespaceName = f .Namespace .Name
94
91
95
- // Make sure the relevant provider supports admission webhook
96
- framework .SkipUnlessServerVersionGTE (serverWebhookVersion , f .ClientSet .Discovery ())
97
- framework .SkipUnlessProviderIs ("gce" , "gke" , "local" )
98
-
99
- _ , err := f .ClientSet .AdmissionregistrationV1 ().ValidatingWebhookConfigurations ().List (metav1.ListOptions {})
100
- if errors .IsNotFound (err ) {
101
- framework .Skipf ("dynamic configuration of webhooks requires the admissionregistration.k8s.io group to be enabled" )
102
- }
103
-
104
92
// Make sure the namespace created for the test is labeled to be selected by the webhooks
105
93
labelNamespace (f , f .Namespace .Name )
106
94
0 commit comments