Commit 75e4d801 authored by Sean Holung's avatar Sean Holung
Browse files

Sholung/use kubeconfig directly

parent 917f9649
......@@ -13,7 +13,7 @@ const DOCKER_TAG = config.require("DOCKER_TAG");
// Global Stack reference and outputs.
const globalStackRef = new pulumi.StackReference("rocore/global-infra/global-infra");
const clusterProviderOutput = globalStackRef.getOutputSync("clusterProvider");
const kubeconfigOutput = globalStackRef.getOutput("kubeconfig");
const namespaceOutput = globalStackRef.getOutputSync("namespace");
let svcAccountOutput = globalStackRef.getOutputSync("testSvcAccount");
const accTestSvcAccount = globalStackRef.getOutputSync("acceptanceTestSvcAccount");
......@@ -54,7 +54,7 @@ const serviceAccountKey = new gcp.serviceAccount.Key(name, {
// Create a Kubernetes provider instance that uses our cluster from above.
const clusterProvider = new k8s.Provider(name, {
kubeconfig: clusterProviderOutput.kubeconfig,
kubeconfig: kubeconfigOutput,
namespace: namespaceOutput.metadata.name,
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment