recorder

package
v0.0.0-...-39ec467 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const PoolLabel = "worker.gardener.cloud/pool"

Variables

View Source
var ErrKeyNotFound = errors.New("key not found")
View Source
var ZoneLabels = []string{"topology.gke.io/zone", "topology.ebs.csi.aws.com/zone"}

Functions

func ComputePodScheduleStatus

func ComputePodScheduleStatus(pod *corev1.Pod) (scheduleStatus gst.PodScheduleStatus)

ComputePodScheduleStatus -1 => NotDetermined, 0 => Scheduled, 1 => Unscheduled

func GetInnerMap

func GetInnerMap(parentMap map[string]any, keys ...string) (map[string]any, error)

func GetInnerMapValue

func GetInnerMapValue(parentMap map[string]any, keys ...string) (any, error)

func InvokeOrScheduleFunc

func InvokeOrScheduleFunc[T any](label string, duration time.Duration, entity T, fn func(T) error)

func IsOwnedBy

func IsOwnedBy(pod *corev1.Pod, gvks []schema.GroupVersionKind) bool

func NewDefaultRecorder

func NewDefaultRecorder(params gsh.RecorderParams, startTime time.Time) (gsh.Recorder, error)

func PodInfoFromPod

func PodInfoFromPod(p *corev1.Pod) gst.PodInfo

Types

type ConnChecker

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

func NewConnChecker

func NewConnChecker(shootConfig, controlConfig *rest.Config) (*ConnChecker, error)

func (*ConnChecker) TestConnection

func (c *ConnChecker) TestConnection(ctx context.Context) error

Jump to

Keyboard shortcuts

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