Avoid ingress class creation if k8s < 1.18
This commit is contained in:
parent
7f991eef84
commit
789021e4f6
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ var _ = framework.IngressNginxDescribe("[Flag] ingress-class", func() {
|
|||
},
|
||||
}, metav1.CreateOptions{})
|
||||
|
||||
if !f.IsIngressV1Beta1Ready {
|
||||
return
|
||||
}
|
||||
|
||||
_, err := f.KubeClientSet.NetworkingV1beta1().IngressClasses().
|
||||
Create(context.TODO(), &networking.IngressClass{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
|
|
Loading…
Reference in a new issue