mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 11:48:53 +00:00
feat: pass feature gates to scripts/run-external.sh
This change allows to pass feature gates to the script. For instance: ``` FEATURE_GATES="PrometheusAgentDaemonSet=true" ./run/run-external.sh -c ``` Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
25a7bdf505
commit
83be2163d0
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ declare SKIP_OPERATOR_RUN_CHECK=false
|
|||
declare USE_DEFAULT_CONTEXT=false
|
||||
declare API_SERVER=""
|
||||
declare IMPERSONATE_USER="${IMPERSONATE_USER:-}"
|
||||
declare FEATURE_GATES="${FEATURE_GATES:-}"
|
||||
|
||||
# tmp operator files that needs to be cleaned up
|
||||
declare -r CA_FILE="tmp/CA_FILE"
|
||||
|
@ -130,6 +131,7 @@ run_operator() {
|
|||
--apiserver="$API_SERVER" \
|
||||
--ca-file="$CA_FILE" \
|
||||
--cert-file="$CERT_FILE" \
|
||||
--feature-gates="$FEATURE_GATES" \
|
||||
--key-file="$KEY_FILE" 2>&1 | tee tmp/operator.log
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue