diagnostics

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package diagnostics provides Talos diagnostics specific checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressOverlapCheck

func AddressOverlapCheck(ctx context.Context, r controller.Reader, logger *zap.Logger) (*runtime.DiagnosticSpec, error)

AddressOverlapCheck checks for overlapping host and Kubernetes pod/service CIDR addresses.

func KubeletCSRNotApprovedCheck

func KubeletCSRNotApprovedCheck(ctx context.Context, r controller.Reader, logger *zap.Logger) (*runtime.DiagnosticSpec, error)

KubeletCSRNotApprovedCheck checks for kubelet server certificate rotation and no CSR approvers.

Types

type Check

type Check func(ctx context.Context, r controller.Reader, logger *zap.Logger) (*runtime.DiagnosticSpec, error)

Check defines a function that checks for a specific issue.

If the check produces a warning, it should return a non-nil warning and nil error. If the check produces an error, the error will be logged, and other checks will proceed running.

type CheckDescription

type CheckDescription struct {
	// Semantic ID is used to identify the check and help message.
	ID string

	// Hysteresis time to wait before announcing the warning after the first appearance.
	Hysteresis time.Duration

	// Check function to run.
	Check Check
}

CheckDescription combines a check with a semantic ID.

func Checks

func Checks() []CheckDescription

Checks returns a list of checks to be run by the diagnostics engine.

Jump to

Keyboard shortcuts

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