sparse-intern-71089
06/05/2020, 2:23 AMcreamy-potato-29402
06/05/2020, 2:35 AMcreamy-potato-29402
06/05/2020, 2:36 AMbitter-dentist-28132
06/05/2020, 2:36 AMbitter-dentist-28132
06/05/2020, 2:37 AMbitter-dentist-28132
06/05/2020, 2:38 AMcluster.kubeConfig
bitter-dentist-28132
06/05/2020, 2:38 AMtry {
// first try to generate the kubeconfig from a pre-existing cluster.
// this is done to workaround the 7-day expiry of kubeconfigs from DO.
kubeConfig = pulumi.secret(digitalocean.getKubernetesCluster(
{name: `infrastructure`}).kubeConfigs[0].rawConfig);
} catch (e) {
// if we can't do that, simply grab the kubeconfig from the cluster we
// just created
kubeConfig = pulumi.secret(cluster.kubeConfigs[0].rawConfig);
}
bitter-dentist-28132
06/05/2020, 2:41 AMbitter-dentist-28132
06/05/2020, 2:42 AMcreamy-potato-29402
06/05/2020, 3:07 AMcreamy-potato-29402
06/05/2020, 3:07 AMcreamy-potato-29402
06/05/2020, 3:08 AMcreamy-potato-29402
06/05/2020, 3:09 AMbitter-dentist-28132
06/05/2020, 3:18 AMkubectl
-- worked fine.bitter-dentist-28132
06/05/2020, 3:18 AMbitter-dentist-28132
06/05/2020, 3:22 AMup
just the provider to bump the kubeconfigbitter-dentist-28132
06/05/2020, 3:27 AMrefresh
was using the stack's stored provider, which of course no longer works after 7 days because DO uses expiring certs for auth... sighbitter-dentist-28132
06/05/2020, 3:27 AMcreamy-potato-29402
06/05/2020, 3:43 AM