util

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStringMap

func CopyStringMap(in map[string]string) map[string]string

func FindPort

func FindPort(pod *kube_core.Pod, svcPort *kube_core.ServicePort) (int, error)

FindPort locates the container port for the given pod and portName. If the targetPort is a number, use that. If the targetPort is a string, look that string up in all named ports in all containers in the target pod. If no match is found, fail.

func FindServices

func FindServices(svcs *kube_core.ServiceList, predicate ServicePredicate) []*kube_core.Service

Types

type ServicePredicate

type ServicePredicate func(*kube_core.Service) bool

func MatchServiceThatSelectsPod

func MatchServiceThatSelectsPod(pod *kube_core.Pod) ServicePredicate

Jump to

Keyboard shortcuts

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