healthcheck

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package healthcheck typically enables readiness or liveness probes within kubernetes. IMPORTANT: If you update this behavior, be sure to update internal/fullnode/pod_builder.go with the new cosmos operator image in the "healthcheck" container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Statuser

type Statuser interface {
	Status(ctx context.Context, rpcHost string) (cosmos.TendermintStatus, error)
}

Statuser can query the Tendermint status endpoint.

type Tendermint

type Tendermint struct {
	// contains filtered or unexported fields
}

Tendermint checks the Tendermint status endpoint to determine if the node is in-sync or not.

func NewTendermint

func NewTendermint(logger logr.Logger, client Statuser, rpcHost string, timeout time.Duration) *Tendermint

func (*Tendermint) ServeHTTP

func (h *Tendermint) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

Jump to

Keyboard shortcuts

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