Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Jan 29, 2020
1 parent 6a302d6 commit 35daced
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions digitalocean-ts-k8s/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const cluster = new digitalocean.KubernetesCluster("do-cluster", {
// initial provisioning. You'll notice that the `certificate-authority-data`
// field changes on every `pulumi update`.
const kubeconfig = cluster.status.apply(status => {
if (status === 'running') {
const clusterDataSource = cluster.name.apply(name => digitalocean.getKubernetesCluster({name}));
return clusterDataSource.kubeConfigs[0].rawConfig;
} else {
return cluster.kubeConfigs[0].rawConfig;
}
if (status === "running") {
const clusterDataSource = cluster.name.apply(name => digitalocean.getKubernetesCluster({name}));
return clusterDataSource.kubeConfigs[0].rawConfig;
} else {
return cluster.kubeConfigs[0].rawConfig;
}
});

// Now lets actually deploy an application to our new cluster. We begin
Expand Down

0 comments on commit 35daced

Please sign in to comment.