-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |