Skip to content

Commit fb13eda

Browse files
committed
monitor all apps by default
1 parent 6f03dc7 commit fb13eda

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmd/controller_cmd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ func init() {
142142
stringFlag(flags, "webhook-url-base", "The endpoint to listen on for incoming PR/MR event webhooks. For example, 'https://checker.mycompany.com'.")
143143
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'.")
144144
stringFlag(flags, "webhook-secret", "Optional secret key for validating the source of incoming webhooks.")
145-
boolFlag(flags, "monitor-all-applications", "Monitor all applications in argocd automatically.")
145+
boolFlag(flags, "monitor-all-applications", "Monitor all applications in argocd automatically.",
146+
newBoolOpts().withDefault(true))
146147
boolFlag(flags, "ensure-webhooks", "Ensure that webhooks are created in repositories referenced by argo.")
147148
stringFlag(flags, "repo-refresh-interval", "Interval between static repo refreshes (for schemas and policies).",
148149
newStringOpts().withDefault("5m"))

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The full list of supported environment variables is described below:
5757
|`KUBECHECKS_LOG_LEVEL`|Set the log output level. One of error, warn, info, debug, trace.|`info`|
5858
|`KUBECHECKS_MAX_CONCURRENCT_CHECKS`|Number of concurrent checks to run.|`32`|
5959
|`KUBECHECKS_MAX_QUEUE_SIZE`|Size of app diff check queue.|`1024`|
60-
|`KUBECHECKS_MONITOR_ALL_APPLICATIONS`|Monitor all applications in argocd automatically.|`false`|
60+
|`KUBECHECKS_MONITOR_ALL_APPLICATIONS`|Monitor all applications in argocd automatically.|`true`|
6161
|`KUBECHECKS_OPENAI_API_TOKEN`|OpenAI API Token.||
6262
|`KUBECHECKS_OTEL_COLLECTOR_HOST`|The OpenTelemetry collector host.||
6363
|`KUBECHECKS_OTEL_COLLECTOR_PORT`|The OpenTelemetry collector port.||

0 commit comments

Comments
 (0)