Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Takes Struct Of Used K8s Objects and returns Struct of UN-Used K8s Objects
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
Click to show internal directories.
Click to hide internal directories.