Description of changes:
Allow a namespace to be passed as an optional configuration parameter. When passed this namespace will be used when querying the kubernetes API to allow the operator to be scoped to a namespace.
Combined with using Role and RoleBinding instead of ClusterRole and ClusterRoleBinding when deploying the operator, this allows the operator to be run with namespace-scoped permissions.
The default behaviour if no namespace is passed in is to use all namespaces as it does currently.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: n/a
Description of changes: Allow a namespace to be passed as an optional configuration parameter. When passed this namespace will be used when querying the kubernetes API to allow the operator to be scoped to a namespace.
Combined with using
Role
andRoleBinding
instead ofClusterRole
andClusterRoleBinding
when deploying the operator, this allows the operator to be run with namespace-scoped permissions.The default behaviour if no namespace is passed in is to use all namespaces as it does currently.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.