diff --git a/vertical-pod-autoscaler/docs/flags.md b/vertical-pod-autoscaler/docs/flags.md index 3fe9e675c6..6981b49f4b 100644 --- a/vertical-pod-autoscaler/docs/flags.md +++ b/vertical-pod-autoscaler/docs/flags.md @@ -36,7 +36,7 @@ This document is auto-generated from the flag definitions in the VPA admission-c | `--tls-cert-file` | "/etc/tls-certs/serverCert.pem" | Path to server certificate PEM file. | | `--tls-ciphers` | | A comma-separated or colon-separated list of ciphers to accept. Only works when min-tls-version is set to tls1_2. | | `--tls-private-key` | "/etc/tls-certs/serverKey.pem" | Path to server certificate key PEM file. | -| `--v` | | Set the log level verbosity | +| `--v` | 4 | Set the log level verbosity | | `--vmodule` | | comma-separated list of pattern=N settings for file-filtered logging | | `--vpa-object-namespace` | | Specifies the namespace to search for VPA objects. Leave empty to include all namespaces. If provided, the garbage collector will only clean this namespace. | | `--webhook-address` | | Address under which webhook is registered. Used when registerByURL is set to true. | @@ -121,7 +121,7 @@ This document is auto-generated from the flag definitions in the VPA recommender | `--target-memory-percentile` | 0.9 | Memory usage percentile that will be used as a base for memory target recommendation. Doesn't affect memory lower bound nor memory upper bound. | | `--use-external-metrics` | | ALPHA. Use an external metrics provider instead of metrics_server. | | `--username` | | The username used in the prometheus server basic auth | -| `--v` | | Set the log level verbosity | +| `--v` | 4 | Set the log level verbosity | | `--vmodule` | | comma-separated list of pattern=N settings for file-filtered logging | | `--vpa-object-namespace` | | Specifies the namespace to search for VPA objects. Leave empty to include all namespaces. If provided, the garbage collector will only clean this namespace. | @@ -163,7 +163,7 @@ This document is auto-generated from the flag definitions in the VPA updater cod | `--stderrthreshold` | | set the log level threshold for writing to standard error | | `--updater-interval` | 1m0s | How often updater should run | | `--use-admission-controller-status` | true | If true, updater will only evict pods when admission controller status is valid. | -| `--v` | | Set the log level verbosity | +| `--v` | 4 | Set the log level verbosity | | `--vmodule` | | comma-separated list of pattern=N settings for file-filtered logging | | `--vpa-object-namespace` | | Specifies the namespace to search for VPA objects. Leave empty to include all namespaces. If provided, the garbage collector will only clean this namespace. | diff --git a/vertical-pod-autoscaler/hack/generate-flags.sh b/vertical-pod-autoscaler/hack/generate-flags.sh index c94152d09e..a0d8def26f 100755 --- a/vertical-pod-autoscaler/hack/generate-flags.sh +++ b/vertical-pod-autoscaler/hack/generate-flags.sh @@ -43,7 +43,7 @@ extract_flags() { if [[ $line == *"-v, --v Level"* ]]; then # Special handling for the -v, --v Level flag flag="v" - default=$(echo "$line" | sed -n 's/.*default: \([0-9]\+\).*/\1/p') + default=$(echo "$line" | sed -n 's/.*default: \([0-9]\{1,\}\).*/\1/p') description="Set the log level verbosity" else flag=$(echo "$line" | awk '{print $1}' | sed 's/^-*//;s/=.*$//')