diff --git a/README.md b/README.md index 62153cf..a2ec464 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,9 @@ An sample Deployment yaml can be found at `/deploy/operator.yaml`. To further configure the 1Password Kubernetes Operator the Following Environment variables can be set in the operator yaml: -- **WATCH_NAMESPACE:** comma separated list of what Namespaces to watch for changes. - **OP_CONNECT_HOST** (required): Specifies the host name within Kubernetes in which to access the 1Password Connect. -- **POLLING_INTERVAL** (default: 600)**:** The number of seconds the 1Password Kubernetes Operator will wait before checking for updates from 1Password Connect. +- **WATCH_NAMESPACE:** (default: watch all namespaces): Comma separated list of what Namespaces to watch for changes. +- **POLLING_INTERVAL** (default: 600): The number of seconds the 1Password Kubernetes Operator will wait before checking for updates from 1Password Connect. - **MANAGE_CONNECT** (default: false): If set to true, on deployment of the operator, a default configuration of the OnePassword Connect Service will be deployed to the `default` namespace. - **AUTO_RESTART** (default: false): If set to true, the operator will restart any deployment using a secret from 1Password Connect. This can be overwritten by namespace, deployment, or individual secret. More details on AUTO_RESTART can be found in the ["Configuring Automatic Rolling Restarts of Deployments"](#configuring-automatic-rolling-restarts-of-deployments) section. diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 66c57a9..9e62460 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -83,11 +83,7 @@ func main() { printVersion() - namespace, err := k8sutil.GetWatchNamespace() - if err != nil { - log.Error(err, "Failed to get watch namespace") - os.Exit(1) - } + namespace := os.Getenv(k8sutil.WatchNamespaceEnvVar) // Get a config to talk to the apiserver cfg, err := config.GetConfig()