Honor the NewProvisioner() parameter list by making use of the namespace parameter if provided.
If no namespace is given, the informers are generated as cluster scoped, as they have been. If a namespace is provided, the informers are scoped to that namespace. The result of course is that the controller will only monitor OBCs in the given namespace.
Honor the
NewProvisioner()
parameter list by making use of thenamespace
parameter if provided.If no namespace is given, the informers are generated as cluster scoped, as they have been. If a namespace is provided, the informers are scoped to that namespace. The result of course is that the controller will only monitor OBCs in the given namespace.
This change is backward compatible.
Signed-off-by: Jon Cope jcope@redhat.com