ping

package
v0.6.74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 37 Imported by: 0

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.

func RunRuntimeServicePingerInBackgroundOrDie

func RunRuntimeServicePingerInBackgroundOrDie(ctx context.Context, pinger *Pinger, duration time.Duration)

Types

type HeuristicVersionSearch

type HeuristicVersionSearch func([]string) string

type Option added in v0.6.72

type Option func(*Pinger)

Option configures a Pinger.

func WithInsightGracePeriod added in v0.6.72

func WithInsightGracePeriod(period time.Duration) Option

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 New

func New(console client.Client, config *rest.Config, k8sClient ctrclient.Client, discoveryCache discoverycache.Cache, store store.Store, options ...Option) (*Pinger, error)

func NewOrDie

func NewOrDie(console client.Client, config *rest.Config, k8sClient ctrclient.Client, discoveryCache discoverycache.Cache, store store.Store, options ...Option) *Pinger

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 (p *Pinger) PingCluster() error

func (*Pinger) PingRuntimeServices

func (p *Pinger) PingRuntimeServices(ctx context.Context)

type VersionPair

type VersionPair struct {
	LatestVersion   string
	PreviousVersion string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL