controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodsOfController

func GetPodsOfController(client kubernetes.Interface, namespace, kind, name, apiVersion string) ([]corev1.Pod, error)

GetPodsOfController return pods created by controller name

Types

type OwnerController

type OwnerController struct {
	Name              string            `json:"name"`
	Labels            map[string]string `json:"labels"`
	Kind              string            `json:"kind"`
	Ready             string            `json:"ready"`
	Images            []string          `json:"images"`
	CreationTimestamp metav1.Time       `json:"creationTimestamp"`
}

func GetPodOwnerController

func GetPodOwnerController(client kubernetes.Interface, pod *corev1.Pod) ([]OwnerController, error)

Jump to

Keyboard shortcuts

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