diff --git a/cmd/controller_cmd.go b/cmd/controller_cmd.go index 5b8b0440..f5587e3a 100644 --- a/cmd/controller_cmd.go +++ b/cmd/controller_cmd.go @@ -142,7 +142,8 @@ func init() { stringFlag(flags, "webhook-url-base", "The endpoint to listen on for incoming PR/MR event webhooks. For example, 'https://checker.mycompany.com'.") stringFlag(flags, "webhook-url-prefix", "If your application is running behind a proxy that uses path based routing, set this value to match the path prefix. For example, '/hello/world'.") stringFlag(flags, "webhook-secret", "Optional secret key for validating the source of incoming webhooks.") - boolFlag(flags, "monitor-all-applications", "Monitor all applications in argocd automatically.") + boolFlag(flags, "monitor-all-applications", "Monitor all applications in argocd automatically.", + newBoolOpts().withDefault(true)) boolFlag(flags, "ensure-webhooks", "Ensure that webhooks are created in repositories referenced by argo.") stringFlag(flags, "repo-refresh-interval", "Interval between static repo refreshes (for schemas and policies).", newStringOpts().withDefault("5m")) diff --git a/docs/usage.md b/docs/usage.md index ed61c6ca..94cc6f09 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -57,7 +57,7 @@ The full list of supported environment variables is described below: |`KUBECHECKS_LOG_LEVEL`|Set the log output level. One of error, warn, info, debug, trace.|`info`| |`KUBECHECKS_MAX_CONCURRENCT_CHECKS`|Number of concurrent checks to run.|`32`| |`KUBECHECKS_MAX_QUEUE_SIZE`|Size of app diff check queue.|`1024`| -|`KUBECHECKS_MONITOR_ALL_APPLICATIONS`|Monitor all applications in argocd automatically.|`false`| +|`KUBECHECKS_MONITOR_ALL_APPLICATIONS`|Monitor all applications in argocd automatically.|`true`| |`KUBECHECKS_OPENAI_API_TOKEN`|OpenAI API Token.|| |`KUBECHECKS_OTEL_COLLECTOR_HOST`|The OpenTelemetry collector host.|| |`KUBECHECKS_OTEL_COLLECTOR_PORT`|The OpenTelemetry collector port.||