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
.help("Do not exit with an error if the Kubernetes connection fails. This will cause context aware policies to break when there's no connection with Kubernetes."),
163
-
Arg::new("enable-pprof")
164
-
.long("enable-pprof")
165
-
.env("KUBEWARDEN_ENABLE_PPROF")
166
-
.action(ArgAction::SetTrue)
167
-
.help("Enable pprof profiling"),
168
-
Arg::new("continue-on-errors")
169
-
.long("continue-on-errors")
170
-
.env("KUBEWARDEN_CONTINUE_ON_ERRORS")
171
-
.action(ArgAction::SetTrue)
172
-
.hide(true),
173
-
Arg::new("otlp-endpoint")
174
-
.long("otlp-endpoint")
175
-
.env("OTEL_EXPORTER_OTLP_ENDPOINT")
176
-
.default_value("http://localhost:4317")
177
-
.help("The OTLP gRPC endpoint for exporting traces and metrics.")
25
+
Arg::new("log-level")
26
+
.long("log-level")
27
+
.value_name("LOG_LEVEL")
28
+
.env("KUBEWARDEN_LOG_LEVEL")
29
+
.default_value("info")
30
+
.value_parser([
31
+
PossibleValue::new("trace"),
32
+
PossibleValue::new("debug"),
33
+
PossibleValue::new("info"),
34
+
PossibleValue::new("warn"),
35
+
PossibleValue::new("error"),
36
+
])
37
+
.help("Log level"),
38
+
39
+
Arg::new("log-fmt")
40
+
.long("log-fmt")
41
+
.value_name("LOG_FMT")
42
+
.env("KUBEWARDEN_LOG_FMT")
43
+
.default_value("text")
44
+
.value_parser([
45
+
PossibleValue::new("text"),
46
+
PossibleValue::new("json"),
47
+
PossibleValue::new("otlp"),
48
+
])
49
+
.help("Log output format"),
50
+
51
+
Arg::new("log-no-color")
52
+
.long("log-no-color")
53
+
.env("NO_COLOR")
54
+
.action(ArgAction::SetTrue)
55
+
.help("Disable colored output for logs"),
56
+
57
+
Arg::new("address")
58
+
.long("addr")
59
+
.value_name("BIND_ADDRESS")
60
+
.default_value("0.0.0.0")
61
+
.env("KUBEWARDEN_BIND_ADDRESS")
62
+
.help("Bind against ADDRESS"),
63
+
64
+
Arg::new("port")
65
+
.long("port")
66
+
.value_name("PORT")
67
+
.default_value("3000")
68
+
.env("KUBEWARDEN_PORT")
69
+
.help("Listen on PORT"),
70
+
71
+
Arg::new("workers")
72
+
.long("workers")
73
+
.value_name("WORKERS_NUMBER")
74
+
.env("KUBEWARDEN_WORKERS")
75
+
.help("Number of worker threads to create"),
76
+
77
+
Arg::new("cert-file")
78
+
.long("cert-file")
79
+
.value_name("CERT_FILE")
80
+
.default_value("")
81
+
.env("KUBEWARDEN_CERT_FILE")
82
+
.help("Path to an X.509 certificate file for HTTPS"),
83
+
84
+
Arg::new("key-file")
85
+
.long("key-file")
86
+
.value_name("KEY_FILE")
87
+
.default_value("")
88
+
.env("KUBEWARDEN_KEY_FILE")
89
+
.help("Path to an X.509 private key file for HTTPS"),
90
+
91
+
Arg::new("policies")
92
+
.long("policies")
93
+
.value_name("POLICIES_FILE")
94
+
.env("KUBEWARDEN_POLICIES")
95
+
.default_value("policies.yml")
96
+
.help("YAML file holding the policies to be loaded and their settings"),
.help("Do not exit with an error if the Kubernetes connection fails. This will cause context-aware policies to break when there's no connection with Kubernetes."),
0 commit comments