deployment

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 deployment 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 CheckDeployment

type CheckDeployment 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
}

CheckDeployment interface to check a deployment

func NewCheckDeployment

func NewCheckDeployment(client kubernetes.Interface, name string, namespace string) CheckDeployment

NewCheckDeployment creates a new instance of CheckDeployment

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 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