kubeutils

package
v0.0.0-...-b5178b8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodCopy

type PodCopy interface {
	FromPod(sourceFilePath, destinationFilePath string) error
}

func NewPodCP

func NewPodCP(
	config rest.Config,
	clientset *kubernetes.Clientset,
	container, pod string) PodCopy

type Target

type Target struct {
	App          string
	ID           string
	IP           string
	ExposedPorts []string
}

func GetPodIPsLabel

func GetPodIPsLabel(clientset *kubernetes.Clientset, namespace string) ([]Target, error)

GetPodIPsLabel get targets via clientset within namespace

func (*Target) RequiredFoundPorts

func (t *Target) RequiredFoundPorts() []string

RequiredFoundPorts returns the ports required to be found when running discovery

Those ports can differ from the defined ports within the deployment since there may not relevant for testing.

Jump to

Keyboard shortcuts

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