forked from github/multus-cni
Add multusNamespace/systemNamespaces config
This change provides new configuration parameters, multusNamespace and systemNamespaces for flexible namespace management. The change addresses issue #252 and issue #253.
This commit is contained in:
committed by
dougbtv
parent
972a7d18c6
commit
73e10fb999
@@ -124,4 +124,11 @@ var _ = Describe("config operations", func() {
|
||||
Expect(netConf.ReadinessIndicatorFile).To(Equal("/etc/cni/net.d/foo"))
|
||||
})
|
||||
|
||||
It("check CheckSystemNamespaces() works fine", func() {
|
||||
b1 := CheckSystemNamespaces("foobar", []string{"barfoo", "bafoo", "foobar"})
|
||||
Expect(b1).To(Equal(true))
|
||||
b2 := CheckSystemNamespaces("foobar1", []string{"barfoo", "bafoo", "foobar"})
|
||||
Expect(b2).To(Equal(false))
|
||||
})
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user