Skip to content

Commit

Permalink
updates to pending when retryable error occured
Browse files Browse the repository at this point in the history
  • Loading branch information
Disper committed Nov 18, 2024
1 parent f6400d0 commit cbd6dbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ func sFnWaitForShootReconcile(_ context.Context, m *fsm, s *systemState) (stateF

if imgardenerhandler.IsRetryable(lastErrors) {
m.log.Info(fmt.Sprintf("Retryable gardener errors during cluster provisioning for Shoot %s, reason: %s, scheduling for retry", s.shoot.Name, reason))
// TODO: should update status?
s.instance.UpdateStatePending(
imv1.ConditionTypeRuntimeProvisioned,
imv1.ConditionReasonShootCreationPending,
"Unknown",
"Retryable gardener errors during cluster reconcile")
return updateStatusAndRequeueAfter(m.RCCfg.GardenerRequeueDuration)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ func sFnWaitForShootCreation(_ context.Context, m *fsm, s *systemState) (stateFn

if imgardenerhandler.IsRetryable(lastErrors) {
m.log.Info(fmt.Sprintf("Retryable gardener errors during cluster provisioning for Shoot %s, reason: %s, scheduling for retry", s.shoot.Name, reason))
//TODO: should update status?
s.instance.UpdateStatePending(
imv1.ConditionTypeRuntimeProvisioned,
imv1.ConditionReasonShootCreationPending,
"Unknown",
"Retryable gardener errors during cluster provisioning")
return updateStatusAndRequeueAfter(m.RCCfg.GardenerRequeueDuration)
}

Expand Down

0 comments on commit cbd6dbf

Please sign in to comment.