File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ Grafana dashboard configmaps are stored in the [Dashboards](./dashboards/) direc
130
130
131
131
### Required ENV variables
132
132
133
+ ** Note:** For local execution, these can exported from vault with ` source test/set_stage_env.sh `
134
+
133
135
* ` CAD_OCM_CLIENT_ID ` : refers to the OCM client ID used by CAD to initialize the OCM client
134
136
* ` CAD_OCM_CLIENT_SECRET ` : refers to the OCM client secret used by CAD to initialize the OCM client
135
137
* ` CAD_OCM_URL ` : refers to the used OCM url used by CAD to initialize the OCM client
@@ -150,8 +152,10 @@ Grafana dashboard configmaps are stored in the [Dashboards](./dashboards/) direc
150
152
151
153
### Optional ENV variables
152
154
153
- * ` BACKPLANE_PROXY ` : refers to the proxy CAD uses for the isolated backplane access flow.
155
+ - ` BACKPLANE_PROXY ` : refers to the proxy CAD uses for the isolated backplane access flow.
154
156
155
157
** Note:** ` BACKPLANE_PROXY ` is required for local development, as a backplane api is only accessible through the proxy.
156
158
159
+ - ` CAD_EXPERIMENTAL_ENABLED ` : enables experimental investigations when set to ` true ` , see mapping.go
160
+
157
161
For Red Hat employees, these environment variables can be found in the SRE-P vault.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ export VAULT_ADDR=" https://vault.devshift.net"
5
+ export VAULT_TOKEN=" $( vault login -method=oidc -token-only) "
6
+ for v in $( vault kv get -format=json osd-sre/configuration-anomaly-detection/aws/osdstaging1 | jq -r " .data.data|to_entries|map(\" \(.key)=\(.value|tostring)\" )|.[]" ) ; do export $v ; done
7
+ for v in $( vault kv get -format=json osd-sre/configuration-anomaly-detection/backplane/stg | jq -r " .data.data|to_entries|map(\" \(.key)=\(.value|tostring)\" )|.[]" ) ; do export $v ; done
8
+ for v in $( vault kv get -format=json osd-sre/configuration-anomaly-detection/ocm/ocm-cad-staging | jq -r " .data.data|to_entries|map(\" \(.key)=\(.value|tostring)\" )|.[]" ) ; do export $v ; done
9
+ for v in $( vault kv get -format=json osd-sre/configuration-anomaly-detection/pd/stg | jq -r " .data.data|to_entries|map(\" \(.key)=\(.value|tostring)\" )|.[]" ) ; do export $v ; done
10
+ unset VAULT_ADDR VAULT_TOKEN
11
+
12
+ export CAD_EXPERIMENTAL_ENABLED=true
13
+ export BACKPLANE_PROXY=http://squid.corp.redhat.com:3128
14
+
15
+ echo
16
+
You can’t perform that action at this time.
0 commit comments