ARO-RP/hack/get-admin-kubeconfig.sh

9 строки
223 B
Bash
Исходник Обычный вид История

2019-11-14 04:08:34 +03:00
#!/bin/bash
if [[ "$#" -ne 1 ]]; then
echo "usage: $0 resourceid" >&2
exit 1
fi
go run ./hack/db "$1" | jq -r .openShiftCluster.properties.adminKubeconfig | base64 -d | sed -e 's|https://api-int\.|https://api\.|'