Skip to content

Commit fdef709

Browse files
committed
Fix TLSInputReadyCondition
When GlanceAPI's reconciler is executed, it checks for the provided Input, including TLS related info. If we're not failing (err is not nil), but the operation is still in progress, we should use the proper InputReady message as Reason instead the InitMessage. This patch fixes it and fix the condition with the proper message. Signed-off-by: Francesco Pantano <[email protected]>
1 parent e5cff17 commit fdef709

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/glanceapi_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ func (r *GlanceAPIReconciler) reconcileNormal(ctx context.Context, instance *gla
664664
// progress operation rather than something that failed
665665
instance.Status.Conditions.MarkUnknown(
666666
condition.TLSInputReadyCondition,
667-
condition.InitReason,
668-
condition.InputReadyInitMessage)
667+
condition.RequestedReason,
668+
condition.InputReadyWaitingMessage)
669669
return ctrlResult, nil
670670
}
671671
if hash != "" {
@@ -689,8 +689,8 @@ func (r *GlanceAPIReconciler) reconcileNormal(ctx context.Context, instance *gla
689689
// progress operation rather than something that failed
690690
instance.Status.Conditions.MarkUnknown(
691691
condition.TLSInputReadyCondition,
692-
condition.InitReason,
693-
condition.InputReadyInitMessage)
692+
condition.RequestedReason,
693+
condition.InputReadyWaitingMessage)
694694
return ctrlResult, nil
695695
}
696696
configVars[tls.TLSHashName] = env.SetValue(certsHash)

0 commit comments

Comments
 (0)