triage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Triage

type Triage struct {
	ResourceType string
	AnomalyType  string
	Anomalies    []string
}

func LeftOverDeployments

func LeftOverDeployments(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)

LeftOverDeployments gets a kubernetes.Clientset and a specific namespace string then proceeds to search if there are leftover deployments the criteria is that both the desired number of replicas and the available # of replicas are 0

func LeftOverReplicaSet

func LeftOverReplicaSet(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)

LeftOverReplicaSet gets a kubernetes.Clientset and a specific namespace string then proceeds to search if there are left over replicasets the criteria is that both the desired number of replicas and the available # of replicas are 0

func LeftoverJobs

func LeftoverJobs(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)

LeftoverJobs gets a kubernetes.Clientset and a specific namespace string then proceeds to search if there are leftover cronjobs that were inactive for more than a month

func NewTriage

func NewTriage(resourceType string, anomalyType string, anomalies []string) *Triage

func OrphanedDeployments

func OrphanedDeployments(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)

OrphanedDeployments gets a kubernetes.Clientset and a specific namespace string then proceeds to search if there are leftover deployments the criteria is that the desired number of replicas are bigger than 0 but the available replicas are 0

func OrphanedReplicaSet

func OrphanedReplicaSet(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)

OrphanedReplicaSet gets a kubernetes.Clientset and a specific namespace string then proceeds to search if there are orphan replicasets the criteria is that the desired number of replicas are bigger than 0 but the available replicas are 0

func TriageComponents

func TriageComponents(coreClient coreclient.CoreV1Interface) (*Triage, error)

TriageComponents gets a coreclient and checks if core components are in healthy state such as etcd cluster members, scheduler, controller-manager

func TriageEndpoints

func TriageEndpoints(coreClient coreclient.CoreV1Interface) (*Triage, error)

TriageEndpoints gets a coreclient for k8s and scans through all endpoints to see if they are leftover/unused

func TriageNodes

func TriageNodes(coreClient coreclient.CoreV1Interface) (*Triage, error)

TriageNodes gets a coreclient for k8s and checks if there are any nodes in the cluster that are not in Ready state(unoperational nodes)

func TriagePV

func TriagePV(coreClient coreclient.CoreV1Interface) (*Triage, error)

TriagePV gets a coreclient and checks if there are any pvs that are Available and Unclaimed

func TriagePVC

func TriagePVC(coreClient coreclient.CoreV1Interface) (*Triage, error)

TriagePVC gets a coreclient and checks if there are any pvcs that are in lost state

Jump to

Keyboard shortcuts

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