Skip to content

Commit

Permalink
fix: botvolume better log
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiGuranIonos committed Nov 8, 2024
1 parent 3475aff commit 4ce6875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/serverset/bootvolume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (k *kubeBootVolumeController) isAvailable(ctx context.Context, name, namesp
}
if !kube.IsSuccessfullyCreated(obj) {
conditions := obj.Status.ResourceStatus.Conditions
return false, fmt.Errorf("reason %s %w", conditions[len(conditions)-1].Message, kube.ErrExternalCreateFailed)
return false, fmt.Errorf("resource name %s reason %s %w", obj.Name, conditions[len(conditions)-1].Message, kube.ErrExternalCreateFailed)
}
if obj != nil && obj.Status.AtProvider.VolumeID != "" && strings.EqualFold(obj.Status.AtProvider.State, ionoscloud.Available) {
return true, nil
Expand Down

0 comments on commit 4ce6875

Please sign in to comment.