Skip to content

Commit 21422e5

Browse files
author
Tore Stendal Lønøy
committed
chore(docs): update sed command to work correctly on mac
1 parent c9ee74c commit 21422e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vertical-pod-autoscaler/docs/flags.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This document is auto-generated from the flag definitions in the VPA admission-c
3636
| `--tls-cert-file` | "/etc/tls-certs/serverCert.pem" | Path to server certificate PEM file. |
3737
| `--tls-ciphers` | | A comma-separated or colon-separated list of ciphers to accept. Only works when min-tls-version is set to tls1_2. |
3838
| `--tls-private-key` | "/etc/tls-certs/serverKey.pem" | Path to server certificate key PEM file. |
39-
| `--v` | | Set the log level verbosity |
39+
| `--v` | 4 | Set the log level verbosity |
4040
| `--vmodule` | | comma-separated list of pattern=N settings for file-filtered logging |
4141
| `--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. |
4242
| `--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
121121
| `--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. |
122122
| `--use-external-metrics` | | ALPHA. Use an external metrics provider instead of metrics_server. |
123123
| `--username` | | The username used in the prometheus server basic auth |
124-
| `--v` | | Set the log level verbosity |
124+
| `--v` | 4 | Set the log level verbosity |
125125
| `--vmodule` | | comma-separated list of pattern=N settings for file-filtered logging |
126126
| `--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. |
127127

@@ -163,7 +163,7 @@ This document is auto-generated from the flag definitions in the VPA updater cod
163163
| `--stderrthreshold` | | set the log level threshold for writing to standard error |
164164
| `--updater-interval` | 1m0s | How often updater should run |
165165
| `--use-admission-controller-status` | true | If true, updater will only evict pods when admission controller status is valid. |
166-
| `--v` | | Set the log level verbosity |
166+
| `--v` | 4 | Set the log level verbosity |
167167
| `--vmodule` | | comma-separated list of pattern=N settings for file-filtered logging |
168168
| `--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. |
169169

vertical-pod-autoscaler/hack/generate-flags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extract_flags() {
4343
if [[ $line == *"-v, --v Level"* ]]; then
4444
# Special handling for the -v, --v Level flag
4545
flag="v"
46-
default=$(echo "$line" | sed -n 's/.*default: \([0-9]\+\).*/\1/p')
46+
default=$(echo "$line" | sed -n 's/.*default: \([0-9]\{1,\}\).*/\1/p')
4747
description="Set the log level verbosity"
4848
else
4949
flag=$(echo "$line" | awk '{print $1}' | sed 's/^-*//;s/=.*$//')

0 commit comments

Comments
 (0)