diff --git a/Makefile b/Makefile index eb521874..21889646 100644 --- a/Makefile +++ b/Makefile @@ -435,6 +435,8 @@ build-sonic-base: .PHONY: dev-env dev-env: + @TOKEN=$$(kubectl --kubeconfig=$(KUBECONFIG) get secret -n metal-control-plane metal-apiserver-admin-token --template={{.data.admin_editor_token}} | base64 -d); \ + echo "export METAL_APIV2_TOKEN=$$TOKEN" @echo "export METALCTL_API_URL=${METALCTL_API_URL}" @echo "export METALCTL_HMAC=${METALCTL_HMAC}" @echo "export METAL_APIV2_URL=${METAL_APIV2_URL}"