tanishq-chugh commented on code in PR #6983:
URL: https://github.com/apache/hive/pull/6983#discussion_r4694668844
##########
packaging/src/kubernetes/src/java/org/apache/hive/kubernetes/operator/HiveOperatorMain.java:
##########
@@ -47,11 +54,33 @@ public static void main(String[] args) {
ControllerConfiguration<HiveCluster> baseConfig =
operator.getConfigurationService().getConfigurationFor(reconciler);
- // Watch only our own namespace: cluster-wide, a HiveCluster elsewhere
using a field this
+ // By Default watch only our own namespace: cluster-wide, a HiveCluster
elsewhere using a field this
// build does not know fails to deserialise in the informer, which stops
the process.
- baseConfig = ControllerConfigurationOverrider.override(baseConfig)
- .watchingOnlyCurrentNamespace().build();
- LOG.info("Watching only this operator's own namespace");
+ // Watching other namespaces is configurable via
HIVE_OPERATOR_WATCH_NAMESPACES: a comma-separated
+ // list of namespaces, or "*" for all namespaces.
+ String watchNamespaces = System.getenv(WATCH_NAMESPACES_ENV_KEY);
+ String watchNsValue = watchNamespaces == null ? "" :
watchNamespaces.trim();
Review Comment:
Addressed in commit:
[8e4df22](https://github.com/apache/hive/pull/6983/commits/8e4df22cbc5bc62def24c61d9f3994f38fd800b3)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]