checker

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PhasePre  = "Pre"
	PhasePost = "Post"
	PhaseView = "view"
)
View Source
const (
	ReadyNodeStatus    = "Ready"
	NotReadyNodeStatus = "NotReady"
)

Variables

View Source
var PodNamespaceStatusList []PodNamespaceStatus

Functions

func IsExistEndpoint

func IsExistEndpoint(endpointList *corev1.EndpointsList, serviceName string) bool

func RunCheckList

func RunCheckList(list []Interface, cluster *v2.Cluster, phase string) error

func RunViewCheckList

func RunViewCheckList(cluster *v2.Cluster) error

Types

type HostChecker

type HostChecker struct {
}

func (HostChecker) Check

func (a HostChecker) Check(cluster *v2.Cluster, phase string) error

type Interface

type Interface interface {
	Check(cluster *v2.Cluster, phase string) error
}

Interface Define checkers when pre or post install, like checker node status, checker pod status...

func NewHostChecker

func NewHostChecker() Interface

func NewNodeChecker

func NewNodeChecker() Interface

func NewPodChecker

func NewPodChecker() Interface

func NewRegistryChecker

func NewRegistryChecker(registryDomain string) Interface

func NewSvcChecker

func NewSvcChecker() Interface

type NodeChecker

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

func (*NodeChecker) Check

func (n *NodeChecker) Check(cluster *v2.Cluster, phase string) error

func (*NodeChecker) Output

func (n *NodeChecker) Output(nodeCLusterStatus NodeClusterStatus) error

type NodeClusterStatus

type NodeClusterStatus struct {
	ReadyCount       uint32
	NotReadyCount    uint32
	NodeCount        uint32
	NotReadyNodeList []string
}

type NotFindReadyTypeError

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

func (*NotFindReadyTypeError) Error

func (e *NotFindReadyTypeError) Error() string

type PodChecker

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

func (*PodChecker) Check

func (n *PodChecker) Check(cluster *v2.Cluster, phase string) error

func (*PodChecker) Output

func (n *PodChecker) Output(podNamespaceStatusList []PodNamespaceStatus) error

type PodNamespaceStatus

type PodNamespaceStatus struct {
	NamespaceName     string
	RunningCount      uint32
	NotRunningCount   uint32
	PodCount          uint32
	NotRunningPodList []*corev1.Pod
}

type PodNotReadyError

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

func (*PodNotReadyError) Error

func (e *PodNotReadyError) Error() string

type RegistryChecker

type RegistryChecker struct {
	RegistryDomain string
}

func (*RegistryChecker) Check

func (r *RegistryChecker) Check(cluster *v2.Cluster, phase string) error

type SvcChecker

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

func (*SvcChecker) Check

func (n *SvcChecker) Check(cluster *v2.Cluster, phase string) error

func (*SvcChecker) Output

func (n *SvcChecker) Output(svcNamespaceStatusList []*SvcNamespaceStatus) error

type SvcClusterStatus

type SvcClusterStatus struct {
	SvcNamespaceStatusList []*SvcNamespaceStatus
}

type SvcNamespaceStatus

type SvcNamespaceStatus struct {
	NamespaceName       string
	ServiceCount        int
	EndpointCount       int
	UnhealthServiceList []string
}

Jump to

Keyboard shortcuts

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