mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
fix ingress path when validating webhook for ingress is in place while tests are running
This commit is contained in:
parent
e5ae3f8d67
commit
430b8e6981
@ -20,6 +20,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math/rand"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -634,7 +635,7 @@ var _ = common.SIGDescribe("Ingress API", func() {
|
|||||||
IngressRuleValue: networkingv1.IngressRuleValue{
|
IngressRuleValue: networkingv1.IngressRuleValue{
|
||||||
HTTP: &networkingv1.HTTPIngressRuleValue{
|
HTTP: &networkingv1.HTTPIngressRuleValue{
|
||||||
Paths: []networkingv1.HTTPIngressPath{{
|
Paths: []networkingv1.HTTPIngressPath{{
|
||||||
Path: "/",
|
Path: "/testpath/" + fmt.Sprintf("%08x", rand.Int31()),
|
||||||
PathType: &prefixPathType,
|
PathType: &prefixPathType,
|
||||||
Backend: networkingv1.IngressBackend{
|
Backend: networkingv1.IngressBackend{
|
||||||
Service: &networkingv1.IngressServiceBackend{
|
Service: &networkingv1.IngressServiceBackend{
|
||||||
|
Loading…
Reference in New Issue
Block a user