workloads

package
v0.0.0-...-66d0101 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package workloads implements utility to derive the pods from the parent workloads

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodOwnerTypeAndName

func GetPodOwnerTypeAndName(pod *kcorev1.Pod, dynamicClient dynamic.Interface) (parentType, parentName string, err error)

func GetPodsFromWorkloads

func GetPodsFromWorkloads(target types.AppDetails, client clients.ClientSets) (kcorev1.PodList, error)

GetPodsFromWorkloads derives the pods from the parent workloads

Types

type Workload

type Workload struct {
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Namespace string `json:"namespace"`
}

Jump to

Keyboard shortcuts

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