Skip to content

Commit

Permalink
Log difference on lifecycle hook update
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDog committed Nov 28, 2024
1 parent 4babb7b commit 0b59fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/services/autoscaling/lifecyclehook.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func reconcileLifecycleHook(ctx context.Context, asgService services.ASGInterfac
}

if lifecycleHookNeedsUpdate(existingHook, wantedHook) {
log.Info("Updating lifecycle hook")
log.Info("Updating lifecycle hook", "existingHook", existingHook, "wantedHook", wantedHook)
if err := asgService.UpdateLifecycleHook(ctx, asgName, wantedHook); err != nil {
conditions.MarkFalse(storeConditionsOnObject, expinfrav1.LifecycleHookReadyCondition, expinfrav1.LifecycleHookUpdateFailedReason, clusterv1.ConditionSeverityError, err.Error())
return err
Expand Down

0 comments on commit 0b59fc9

Please sign in to comment.