chore(docs): update sed command to work correctly on mac
This commit is contained in:
parent
c9ee74c39b
commit
21422e5419
|
@ -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. |
|
||||
|
||||
|
|
|
@ -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/=.*$//')
|
||||
|
|
Loading…
Reference in New Issue