Skip to content

Commit 6ceb4d9

Browse files
Fix a panic in the networking tests
1 parent d75ea99 commit 6ceb4d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/extended/networking/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ func makeNamespaceScheduleToAllNodes(f *e2e.Framework) {
312312
for {
313313
ns, err := f.ClientSet.CoreV1().Namespaces().Get(f.Namespace.Name, metav1.GetOptions{})
314314
expectNoError(err)
315+
if ns.Annotations == nil {
316+
ns.Annotations = make(map[string]string)
317+
}
315318
ns.Annotations["openshift.io/node-selector"] = ""
316319
_, err = f.ClientSet.CoreV1().Namespaces().Update(ns)
317320
if err == nil {

0 commit comments

Comments
 (0)