k8s

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package k8s reports the status of various Kubernetes objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide added in v1.1.0

func Provide(cfg hcl.Body, cfgCtx *hcl.EvalContext, nsProbe NamespaceProbe) (model.Prober, error)

Provide creates a Probe from the given configuration and NamespaceProbe

Types

type Config

type Config struct {
	// Kubeconfig is a file path to a kubernetes client configurations file. Defaults to $HOME/.kube/config.
	Kubeconfig string `hcl:"kubeconfig,optional"`
	// Context is the name of the context to probe. Defaults to the current contexxt.
	Context string `hcl:"context,optional"`
	// Namespaces is a list of namespaces to watch. Defaults to all namespaces.
	Namespaces []string `hcl:"namespaces,optional"`
}

Config for the k8s probe that reports on the status of various Kubernetes objects.

type NamespaceProbe added in v1.1.0

type NamespaceProbe func(context.Context, *kubernetes.Clientset, string) model.Statuses

A NamespaceProbe implements a probe for a given k8s object kind within the provided namespace

Directories

Path Synopsis
Package daemonset checks the status of k8s DaemonSet objects
Package daemonset checks the status of k8s DaemonSet objects
Package deployment checks the status of k8s Deployment objects
Package deployment checks the status of k8s Deployment objects
Package node checks the status of k8s Node objects
Package node checks the status of k8s Node objects
Package pod checks the status of k8s Pod objects
Package pod checks the status of k8s Pod objects
Package service checks the status of k8s Service objects
Package service checks the status of k8s Service objects

Jump to

Keyboard shortcuts

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