Skip to content
Snippets Groups Projects
Commit 9cd1eced authored by Jan Zickermann's avatar Jan Zickermann
Browse files

scripts: Add `oc login` step to fetching client secret

parent 1f996c77
No related branches found
No related tags found
No related merge requests found
Pipeline #2755 passed
...@@ -13,6 +13,12 @@ export IN_TLS_CRT="$TLS_DIR"/tls.crt ...@@ -13,6 +13,12 @@ export IN_TLS_CRT="$TLS_DIR"/tls.crt
export OUT_JKS_TRUSTSTORE="$TLS_DIR"/truststore.jks export OUT_JKS_TRUSTSTORE="$TLS_DIR"/truststore.jks
export OUT_P12_KEYSTORE="$TLS_DIR"/keystore.p12 export OUT_P12_KEYSTORE="$TLS_DIR"/keystore.p12
if ! oc whoami >/dev/null
then
echo "Öffne Browser für OpensShift-Login..."
oc login --web --server=https://api.okd.dev.by.ozg-cloud.systems:6443
fi
fetch_secret_file() { fetch_secret_file() {
kubectl get secret -n "$NAMESPACE" "xta-test-server-${CLIENT_NAME}-tls-secret" -o jsonpath="$1" | base64 -d kubectl get secret -n "$NAMESPACE" "xta-test-server-${CLIENT_NAME}-tls-secret" -o jsonpath="$1" | base64 -d
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment