Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunClusterPingerInBackgroundOrDie ¶
func RunClusterPingerInBackgroundOrDie(ctx context.Context, pinger *Pinger, duration time.Duration, ready func(context.Context) error)
RunClusterPingerInBackgroundOrDie pings the cluster every interval. The first ping waits for ready, which should return once the store holds the state of the cluster: a ping built from a partially loaded store would report healthy workloads as missing and drop their insights in Console. Nothing else is held back by it.
Types ¶
type HeuristicVersionSearch ¶
type Option ¶ added in v0.6.72
type Option func(*Pinger)
Option configures a Pinger.
func WithInsightGracePeriod ¶ added in v0.6.72
WithInsightGracePeriod sets how long a recovered component is still reported as an insight, zero disables it.
func WithInsightPriorities ¶ added in v0.6.72
func WithInsightPriorities(evaluator *insightpriority.Evaluator) Option
WithInsightPriorities lets CustomInsightPriority scripts decide the priority of failing components.
type Pinger ¶
type Pinger struct {
// contains filtered or unexported fields
}
func (*Pinger) AddRuntimeServiceInfo ¶
func (p *Pinger) AddRuntimeServiceInfo(namespace string, labels map[string]string, acc map[string]client.NamespaceVersion, heuristicVersionSearch HeuristicVersionSearch)
func (*Pinger) GetDeprecatedCustomResources ¶
func (p *Pinger) GetDeprecatedCustomResources(ctx context.Context) []console.DeprecatedCustomResourceAttributes
func (*Pinger) PingCluster ¶
func (*Pinger) PingRuntimeServices ¶
type VersionPair ¶
Click to show internal directories.
Click to hide internal directories.