Skip to content

Commit 840917c

Browse files
committed
more logging
1 parent e0dd6f2 commit 840917c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

azure/scope/strategies/machinepool_deployments/machinepool_deployment_strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (rollingUpdateStrategy rollingUpdateStrategy) SelectMachinesToDelete(ctx co
128128
return orderRandom
129129
}
130130
}()
131-
log = ctrl.LoggerFrom(ctx).V(4)
131+
log = ctrl.LoggerFrom(ctx).V(2)
132132
deleteAnnotatedMachines = order(getDeleteAnnotatedMachines(machinesByProviderID))
133133
failedMachines = order(getFailedMachines(machinesByProviderID))
134134
deletingMachines = order(getDeletingMachines(machinesByProviderID))

azure/services/scalesets/spec.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ func (s *ScaleSetSpec) OwnerResourceName() string {
9292
}
9393

9494
func (s *ScaleSetSpec) existingParameters(ctx context.Context, existing interface{}) (parameters interface{}, err error) {
95+
ctx, log, done := tele.StartSpanWithLogger(ctx, "scalesets.ScaleSetSpec.existingParameters")
96+
defer done()
97+
9598
existingVMSS, ok := existing.(armcompute.VirtualMachineScaleSet)
9699
if !ok {
97100
return nil, errors.Errorf("%T is not an armcompute.VirtualMachineScaleSet", existing)
@@ -131,6 +134,14 @@ func (s *ScaleSetSpec) existingParameters(ctx context.Context, existing interfac
131134
return nil, nil
132135
}
133136

137+
log.Info("updating VMSS",
138+
"name", s.Name,
139+
"capacity", vmss.SKU.Capacity,
140+
"existingCapacity", existingInfraVMSS.Capacity,
141+
"hasModelChanges", hasModelChanges,
142+
"shouldPatchCustomData", s.ShouldPatchCustomData,
143+
)
144+
134145
return vmss, nil
135146
}
136147

0 commit comments

Comments
 (0)