Skip to content

Commit

Permalink
Fix a panic in the networking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Apr 17, 2018
1 parent d75ea99 commit 6ceb4d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/extended/networking/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ func makeNamespaceScheduleToAllNodes(f *e2e.Framework) {
for {
ns, err := f.ClientSet.CoreV1().Namespaces().Get(f.Namespace.Name, metav1.GetOptions{})
expectNoError(err)
if ns.Annotations == nil {
ns.Annotations = make(map[string]string)
}
ns.Annotations["openshift.io/node-selector"] = ""
_, err = f.ClientSet.CoreV1().Namespaces().Update(ns)
if err == nil {
Expand Down

0 comments on commit 6ceb4d9

Please sign in to comment.