* kubernetes: Fail faster on cluster create error (fixes: #434). * Bump k8s test version slugs.
This commit is contained in:
parent
f4ae42123d
commit
ae4578c0e5
|
@ -485,6 +485,11 @@ func waitForKubernetesClusterCreate(client *godo.Client, id string) (*godo.Kuber
|
|||
return cluster, nil
|
||||
}
|
||||
|
||||
if cluster.Status.State == "error" {
|
||||
ticker.Stop()
|
||||
return nil, fmt.Errorf(cluster.Status.Message)
|
||||
}
|
||||
|
||||
if n > timeout {
|
||||
ticker.Stop()
|
||||
break
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"github.com/hashicorp/terraform-plugin-sdk/terraform"
|
||||
)
|
||||
|
||||
const testClusterVersion15 = "1.15.9-do.2"
|
||||
const testClusterVersion16 = "1.16.6-do.2"
|
||||
const testClusterVersion15 = "1.15.11-do.0"
|
||||
const testClusterVersion16 = "1.16.8-do.0"
|
||||
|
||||
func TestAccDigitalOceanKubernetesCluster_Basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
|
Loading…
Reference in New Issue