You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value (if no value is provided via the @ControllerConfiguration annotation) is currently considered as a request to watch all namespaces. While the default behavior shouldn't change (i.e., if no value is provided all namespaces should still be watched by default), the value should be more explicit and have a clearer semantics.
Similarly, if a user currently specifies a list of namespaces to watch but if that list also includes the Constants.WATCH_CURRENT_NAMESPACE value, then the behavior will be changed to only watching the namespace in which the operator is deployed. This is potential source of error so this should actually be an error to use Constants.WATCH_CURRENT_NAMESPACE in combination with any other value. We will also match this semantics for the new explicit constant to watch all namespaces.
The text was updated successfully, but these errors were encountered:
This uses the constant that was initially introduced for the same reason
on KubernetesDependent, which is now moved to Constants. Uncovered
several issues with configuration overriding in the process and added
test coverage.
Fixes#1176
* feat: make default watched namespaces behavior explicit
This uses the constant that was initially introduced for the same reason
on KubernetesDependent, which is now moved to Constants. Uncovered
several issues with configuration overriding in the process and added
test coverage.
Fixes#1176
* refactor: DEPLOYED_NAMESPACE_ONLY -> CURRENT_NAMESPACE_ONLY
The default value (if no value is provided via the
@ControllerConfiguration
annotation) is currently considered as a request to watch all namespaces. While the default behavior shouldn't change (i.e., if no value is provided all namespaces should still be watched by default), the value should be more explicit and have a clearer semantics.Similarly, if a user currently specifies a list of namespaces to watch but if that list also includes the
Constants.WATCH_CURRENT_NAMESPACE
value, then the behavior will be changed to only watching the namespace in which the operator is deployed. This is potential source of error so this should actually be an error to useConstants.WATCH_CURRENT_NAMESPACE
in combination with any other value. We will also match this semantics for the new explicit constant to watch all namespaces.The text was updated successfully, but these errors were encountered: