statefulset

package
v0.0.0-...-df1bddf Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckAllOptions

type CheckAllOptions struct {
	Client                        kubernetes.Interface
	CheckUpdateStrategyOptions    CheckUpdateStrategyOptions
	CheckAvailableReplicasOptions CheckAvailableReplicasOptions
	CheckPodRestartsOptions       CheckPodRestartsOptions
	CheckProbesDefinedOptions     CheckProbesDefinedOptions
	CheckContainerDefinedOptions  CheckContainerDefinedOptions
}

CheckAllOptions contains options needed to run all StatefulSet checks

type CheckAvailableReplicasOptions

type CheckAvailableReplicasOptions struct {
	ThresholdWarning  string
	ThresholdCritical string
}

CheckAvailableReplicasOptions contains options needed to run CheckAvailableReplicas check

type CheckContainerDefinedOptions

type CheckContainerDefinedOptions struct {
	Result           string
	ContainerDefined []string
}

CheckContainerDefinedOptions contains options needed to run CheckContainerDefined check

type CheckPodRestartsOptions

type CheckPodRestartsOptions struct {
	Result   string
	Duration string
}

CheckPodRestartsOptions contains options needed to run CheckPodRestarts check

type CheckProbesDefinedOptions

type CheckProbesDefinedOptions struct {
	Result        string
	ProbesDefined []string
}

CheckProbesDefinedOptions contains options needed to run CheckProbesDefined check

type CheckStatefulSet

type CheckStatefulSet interface {
	CheckUpdateStrategy(CheckUpdateStrategyOptions) icinga.Result
	CheckAvailableReplicas(CheckAvailableReplicasOptions) icinga.Result
	CheckPodRestarts(CheckPodRestartsOptions) icinga.Result
	CheckProbesDefined(CheckProbesDefinedOptions) icinga.Result
	CheckContainerDefined(CheckContainerDefinedOptions) icinga.Result
	CheckAll(CheckAllOptions) icinga.Results
}

CheckStatefulSet interface to check a StatefulSet

func NewCheckStatefulSet

func NewCheckStatefulSet(client kubernetes.Interface, name string, namespace string) CheckStatefulSet

NewCheckStatefulSet creates a new instance of CheckStatefulSet

type CheckUpdateStrategyOptions

type CheckUpdateStrategyOptions struct {
	Result         string
	UpdateStrategy string
}

CheckUpdateStrategyOptions contains options needed to run CheckUpdateStrategy check

Jump to

Keyboard shortcuts

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