mirror of https://github.com/k3s-io/k3s
init annotations if it is nil to fix kubemci e2e test failures
parent
61cddc9a7f
commit
cacc9cc87f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue