Skip to content

Commit

Permalink
fix: app state with crash but pod is running
Browse files Browse the repository at this point in the history
  • Loading branch information
hysyeah committed Nov 19, 2024
1 parent 5f011a6 commit 3aaa7bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/entrancestatus_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func (r *EntranceStatusManagerController) updateEntranceStatus(pod *corev1.Pod)
filteredApp := make([]appInfo, 0)

for _, a := range apps.Items {
if a.Spec.Namespace != namespace {
continue
}
for _, e := range a.Spec.Entrances {
isSelected, err := r.isEntrancePod(pod, e.Host, namespace)
if err != nil && !apierrors.IsNotFound(err) {
Expand Down

0 comments on commit 3aaa7bc

Please sign in to comment.