1
0
Fork 0
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:
Simon Pasquier 2024-06-27 17:25:01 +02:00
parent 25a7bdf505
commit 83be2163d0
No known key found for this signature in database
GPG key ID: 0190A66C0A10FC4F

View file

@ -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
}