controller

package
v0.0.0-...-5c222d9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

func SetCustomAnnotate

func SetCustomAnnotate(object *metav1.ObjectMeta, data *staleObjData)

Set stale annotation to an Object

Types

type K8sObj

type K8sObj struct {
	Deployments            []appsv1.Deployment        `json:"Deployments"`
	Secrets                []v1.Secret                `json:"Secrets"`
	Configmaps             []v1.ConfigMap             `json:"ConfigMaps"`
	Services               []v1.Service               `json:"Services"`
	Endpoints              []v1.Endpoints             `json:"Endpoints"`
	PersistentVolumeClaims []v1.PersistentVolumeClaim `json:"PVCs"`
	Pods                   []v1.Pod                   `json:"Pods"`
	Ingress                []networking.Ingress       `json:"Ingress"`
}

func GetUnusedObjs

func GetUnusedObjs(used K8sObj) K8sObj

Takes Struct Of Used K8s Objects and returns Struct of UN-Used K8s Objects

func SetUnusedObj

func SetUnusedObj() K8sObj

Main Function

func (*K8sObj) AnnotateStaleObj

func (n *K8sObj) AnnotateStaleObj(m *staleObjData)

Annotate using above struct

func (*K8sObj) FetchUsedObjs

func (ob *K8sObj) FetchUsedObjs()

type K8sObjMeta

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

Struct internally used for comparision

Jump to

Keyboard shortcuts

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