Skip to content

Commit

Permalink
Sdk lints (#2062)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston authored Mar 29, 2023
1 parent 47c0f1e commit 5615ae4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func resourceKubernetesCertificateSigningRequestCreate(ctx context.Context, d *s
return out, csrStatus, nil
},
}
_, err = stateConf.WaitForState()
_, err = stateConf.WaitForStateContext(ctx)
if err != nil {
return diag.FromErr(err)
}
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/resource_kubernetes_persistent_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func resourceKubernetesPersistentVolumeCreate(ctx context.Context, d *schema.Res
return out, statusPhase, nil
},
}
_, err = stateConf.WaitForState()
_, err = stateConf.WaitForStateContext(ctx)
if err != nil {
return diag.FromErr(err)
}
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/resource_kubernetes_persistent_volume_claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func resourceKubernetesPersistentVolumeClaimCreate(ctx context.Context, d *schem
return out, statusPhase, nil
},
}
_, err = stateConf.WaitForState()
_, err = stateConf.WaitForStateContext(ctx)
if err != nil {
var lastWarnings []api.Event
var wErr error
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/resource_kubernetes_storage_class.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func resourceKubernetesStorageClassDelete(ctx context.Context, d *schema.Resourc
return diag.FromErr(err)
}

err = resource.Retry(d.Timeout(schema.TimeoutDelete), func() *resource.RetryError {
err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutDelete), func() *resource.RetryError {
_, err := conn.StorageV1().StorageClasses().Get(ctx, d.Id(), metav1.GetOptions{})
if err != nil {
if statusErr, ok := err.(*errors.StatusError); ok && errors.IsNotFound(statusErr) {
Expand Down

0 comments on commit 5615ae4

Please sign in to comment.