k8s

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(config *config.Config, outputPath string, kind string, namespace string, name string)

func AddDescription

func AddDescription(config *config.Config, outputPath string, kind string, namespace string, name string)

func AddLogs

func AddLogs(cfg *config.Config, path string, namespace string, name string)

func AddPodHttpEndpointOutput

func AddPodHttpEndpointOutput(options AddPodHttpEndpointOutputOptions)

func AddPreviousLogs

func AddPreviousLogs(cfg *config.Config, path string, namespace string, name string)

func AddResourceUsage

func AddResourceUsage(cfg *config.Config, path string, namespace string, name string)

AddResourceUsage path must include '%d' to replace the execution number within the file path

func FindDaemonSet

func FindDaemonSet(cfg *config.Config, namespace string, name string) (*appsv1.DaemonSet, error)

func FindDeployment

func FindDeployment(cfg *config.Config, namespace string, name string) (*appsv1.Deployment, error)

func ForEachPod

func ForEachPod(cfg *config.Config, namespace string, selector *metav1.LabelSelector, fn func(pod *v1.Pod))

ForEachPod note that the function fn will be executed in parallel for each pod

Types

type AddPodHttpEndpointOutputOptions

type AddPodHttpEndpointOutputOptions struct {
	Config                 *config.Config
	OutputPath             string
	PodNamespace           string
	PodName                string
	Url                    string
	Executions             int
	DelayBetweenExecutions *time.Duration
}

Jump to

Keyboard shortcuts

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