Documentation ¶
Index ¶
- type Triage
- func LeftOverDeployments(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)
- func LeftOverReplicaSet(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)
- func LeftoverJobs(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)
- func NewTriage(resourceType string, anomalyType string, anomalies []string) *Triage
- func OrphanedDeployments(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)
- func OrphanedReplicaSet(kubeCli *kubernetes.Clientset, namespace string) (*Triage, error)
- func TriageComponents(coreClient coreclient.CoreV1Interface) (*Triage, error)
- func TriageEndpoints(coreClient coreclient.CoreV1Interface) (*Triage, error)
- func TriageNodes(coreClient coreclient.CoreV1Interface) (*Triage, error)
- func TriagePV(coreClient coreclient.CoreV1Interface) (*Triage, error)
- func TriagePVC(coreClient coreclient.CoreV1Interface) (*Triage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Triage ¶
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 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