File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ const cluster = new digitalocean.KubernetesCluster("do-cluster", {
27
27
// initial provisioning. You'll notice that the `certificate-authority-data`
28
28
// field changes on every `pulumi update`.
29
29
const kubeconfig = cluster . status . apply ( status => {
30
- if ( status === ' running' ) {
31
- const clusterDataSource = cluster . name . apply ( name => digitalocean . getKubernetesCluster ( { name} ) ) ;
32
- return clusterDataSource . kubeConfigs [ 0 ] . rawConfig ;
33
- } else {
34
- return cluster . kubeConfigs [ 0 ] . rawConfig ;
35
- }
30
+ if ( status === " running" ) {
31
+ const clusterDataSource = cluster . name . apply ( name => digitalocean . getKubernetesCluster ( { name} ) ) ;
32
+ return clusterDataSource . kubeConfigs [ 0 ] . rawConfig ;
33
+ } else {
34
+ return cluster . kubeConfigs [ 0 ] . rawConfig ;
35
+ }
36
36
} ) ;
37
37
38
38
// Now lets actually deploy an application to our new cluster. We begin
You can’t perform that action at this time.
0 commit comments