Skip to content

Commit

Permalink
replace tflog with diagnostics when cluster is unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Oct 24, 2024
1 parent 974fdeb commit 833280a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm-framework/helm/resource_helm_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ func (r *HelmRelease) ModifyPlan(ctx context.Context, req resource.ModifyPlanReq
if strings.Contains(err.Error(), "Kubernetes cluster unreachable") {
// FIXME add diagnostic here

tflog.Debug(ctx, "cluster was unreachable at create time, marking manifest as computed")
resp.Diagnostics.AddError("cluster was unreachable at create time, marking manifest as computed", err.Error())
plan.Manifest = types.StringNull()
return
}
Expand Down

0 comments on commit 833280a

Please sign in to comment.