зеркало из https://github.com/Azure/ARO-RP.git
13 строки
379 B
Bash
Executable File
13 строки
379 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$#" -ne 1 ]]; then
|
|
echo "usage: $0 resourceid" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $CI ]]; then
|
|
./db "$1" | jq -r .openShiftCluster.properties.adminKubeconfig | base64 -d | sed -e 's|https://api-int\.|https://api\.|'
|
|
else
|
|
go run ./hack/db "$1" | jq -r .openShiftCluster.properties.adminKubeconfig | base64 -d | sed -e 's|https://api-int\.|https://api\.|'
|
|
fi
|