forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-bridge.sh
executable file
·20 lines (18 loc) · 902 Bytes
/
run-bridge.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -exuo pipefail
./bin/bridge \
--base-address=http://localhost:9000 \
--ca-file=examples/ca.crt \
--k8s-auth=openshift \
--k8s-mode=off-cluster \
--k8s-mode-off-cluster-endpoint="$(oc whoami --show-server)" \
--k8s-mode-off-cluster-skip-verify-tls=true \
--listen=http://127.0.0.1:9000 \
--public-dir=./frontend/public/dist \
--user-auth=openshift \
--user-auth-oidc-client-id=console-oauth-client \
--user-auth-oidc-client-secret-file=examples/console-client-secret \
--user-auth-oidc-ca-file=examples/ca.crt \
--k8s-mode-off-cluster-alertmanager="$(oc -n openshift-config-managed get configmap monitoring-shared-config -o jsonpath='{.data.alertmanagerPublicURL}')" \
--k8s-mode-off-cluster-thanos="$(oc -n openshift-config-managed get configmap monitoring-shared-config -o jsonpath='{.data.thanosPublicURL}')" \
$@