fix(ci): trust internal Kubernetes endpoint
This commit is contained in:
@@ -96,7 +96,8 @@ jobs:
|
||||
cluster_name="$(kubectl config view --kubeconfig "$KUBECONFIG" --minify -o jsonpath='{.clusters[0].name}')"
|
||||
kubectl config set-cluster "$cluster_name" \
|
||||
--kubeconfig "$KUBECONFIG" \
|
||||
--server "$KUBE_API_SERVER" >/dev/null
|
||||
--server "$KUBE_API_SERVER" \
|
||||
--insecure-skip-tls-verify=true >/dev/null
|
||||
|
||||
env_file="${GITEA_ENV_FILE:-${GITHUB_ENV:-}}"
|
||||
if [ -n "$env_file" ]; then
|
||||
@@ -136,7 +137,8 @@ jobs:
|
||||
fi
|
||||
kubectl config set-cluster "$cluster_name" \
|
||||
--kubeconfig "$KUBECONFIG" \
|
||||
--server "$KUBE_API_SERVER" >/dev/null
|
||||
--server "$KUBE_API_SERVER" \
|
||||
--insecure-skip-tls-verify=true >/dev/null
|
||||
|
||||
revision_short="${REVISION:0:12}"
|
||||
migration_dir="$RUNNER_TEMP/buzz-sheet-migration-$revision_short"
|
||||
|
||||
Reference in New Issue
Block a user