mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
init annotations if it is nil to fix kubemci e2e test failures
This commit is contained in:
parent
61cddc9a7f
commit
cacc9cc87f
@ -1627,6 +1627,9 @@ func (j *IngressTestJig) SetUpBacksideHTTPSIngress(cs clientset.Interface, names
|
|||||||
}
|
}
|
||||||
ingToCreate := generateBacksideHTTPSIngressSpec(namespace)
|
ingToCreate := generateBacksideHTTPSIngressSpec(namespace)
|
||||||
if staticIPName != "" {
|
if staticIPName != "" {
|
||||||
|
if ingToCreate.Annotations == nil {
|
||||||
|
ingToCreate.Annotations = map[string]string{}
|
||||||
|
}
|
||||||
ingToCreate.Annotations[IngressStaticIPKey] = staticIPName
|
ingToCreate.Annotations[IngressStaticIPKey] = staticIPName
|
||||||
}
|
}
|
||||||
ingCreated, err := j.runCreate(ingToCreate)
|
ingCreated, err := j.runCreate(ingToCreate)
|
||||||
|
Loading…
Reference in New Issue
Block a user