kubeapi

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindEnvVarByName

func FindEnvVarByName(container corev1.Container, name string) *corev1.EnvVar

FindEnvVarByName finds an EnvVar with the given name in the given Container

func FindIngressRuleByHttpPath

func FindIngressRuleByHttpPath(rules []networkingv1.IngressRule, path string) (*networkingv1.IngressRule, *networkingv1.HTTPIngressPath)

FindIngressRuleByHttpPath finds an IngressRule and HTTPIngressPath with a path matching the given string from among the given array of IngressRules.

func GetContainerByName

func GetContainerByName(containers []corev1.Container, name string) *corev1.Container

GetContainerByName finds a container with the given name in the given array of containers.

func GetContainerNames

func GetContainerNames(containers []corev1.Container) []string

GetContainerNames returns an array of container names corresponding to the given array of containers.

func GetVolumeMountNames added in v1.1.0

func GetVolumeMountNames(container *corev1.Container) []string

func GetVolumeNames added in v1.1.0

func GetVolumeNames(podTemplateSpec *corev1.PodTemplateSpec) []string

func VerifyIngressRule

func VerifyIngressRule(rules []networkingv1.IngressRule, path string, host *string, serviceName string, port int)

VerifyIngressRule finds an IngressRule from the given array with the given path and asserts that it exists and has the correct pathType, host, serviceName, and port.

func VerifyNoRuleWithPath

func VerifyNoRuleWithPath(rules []networkingv1.IngressRule, path string)

VerifyNoRuleWithPath asserts that none of the given IngressRules have a given HTTP path entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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