controller

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllTopControllersSummary

func GetAllTopControllersSummary(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, namespace string) ([]unstructured.Unstructured, error)

GetAllTopControllersSummary returns the highest level owning object of all pods and all of the pods. If a namespace is provided than this is limited to that namespace.

func GetPodSpec

func GetPodSpec(yaml map[string]interface{}) interface{}

GetPodSpec looks inside arbitrary YAML for a PodSpec

func GetTopController

func GetTopController(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, unstructuredObject unstructured.Unstructured, objectCache map[string]unstructured.Unstructured) (unstructured.Unstructured, error)

GetTopController finds the highest level owner of whatever object is passed in.

Types

type Workload

type Workload struct {
	TopController unstructured.Unstructured
	Pods          []unstructured.Unstructured
}

Workload represents a workload in the cluster. It contains the top level object and all of the pods.

func GetAllTopControllers

func GetAllTopControllers(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, namespace string) ([]Workload, error)

GetAllTopControllers returns the highest level owning object of all pods. If a namespace is provided than this is limited to that namespace.

Jump to

Keyboard shortcuts

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