Skip to content

Commit

Permalink
Initial skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Apr 2, 2024
1 parent d0ee04b commit a49a7a2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions internal/fullnode/stuck_detection.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package fullnode

import (
"context"
"time"

cosmosv1 "github.com/strangelove-ventures/cosmos-operator/api/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)

type StuckPodDetection struct {
available func(pods []*corev1.Pod, minReady time.Duration, now time.Time) []*corev1.Pod
collector StatusCollector
computeRollout func(maxUnavail *intstr.IntOrString, desired, ready int) int
}

// StuckPods returns pods that are stuck on a block height due to a cometbft issue that manifests on sentries using horcrux.
func (d StuckPodDetection) StuckPods(ctx context.Context, crd *cosmosv1.CosmosFullNode) []*corev1.Pod {
//TODO
return nil
}

0 comments on commit a49a7a2

Please sign in to comment.