export kubeconfig values so template works

This commit is contained in:
E M 2026-04-10 23:06:42 +10:00
parent fc50479c1e
commit c6a9320648
No known key found for this signature in database

View File

@ -250,9 +250,9 @@ jobs:
--clusterrole=cluster-admin \
--serviceaccount=default:release-tests-runner
TOKEN=$(kubectl create token release-tests-runner -n default --duration=2h)
SERVER=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
CA=$(kubectl config view --minify --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}')
export TOKEN=$(kubectl create token release-tests-runner -n default --duration=2h)
export SERVER=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
export CA=$(kubectl config view --minify --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}')
kubectl create secret generic codex-dist-tests-app-kubeconfig \
--from-file=kubeconfig.yaml=<(envsubst < .github/release/kubeconfig-template.yaml) \