diff --git a/test/e2e/framework/ingress_utils.go b/test/e2e/framework/ingress_utils.go index 44d56cfedc2..68736a3b647 100644 --- a/test/e2e/framework/ingress_utils.go +++ b/test/e2e/framework/ingress_utils.go @@ -1627,6 +1627,9 @@ func (j *IngressTestJig) SetUpBacksideHTTPSIngress(cs clientset.Interface, names } ingToCreate := generateBacksideHTTPSIngressSpec(namespace) if staticIPName != "" { + if ingToCreate.Annotations == nil { + ingToCreate.Annotations = map[string]string{} + } ingToCreate.Annotations[IngressStaticIPKey] = staticIPName } ingCreated, err := j.runCreate(ingToCreate)