Skip to content

Commit

Permalink
Enhance state evaluation by considering pod initialization status
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoxhaa committed Jun 2, 2024
1 parent 97f0eb7 commit c92b69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/schema/v1/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (p *Pod) getIcingaState(pod *kcorev1.Pod) (IcingaState, string) {
break
}

if !initializing {
if !initializing || isPodInitializedConditionTrue(&pod.Status) {
hasRunning := false
for _, container := range pod.Status.ContainerStatuses {
if container.State.Waiting != nil && container.State.Waiting.Reason != "" && container.RestartCount >= 3 {
Expand Down

0 comments on commit c92b69a

Please sign in to comment.