Documentation ¶
Index ¶
- func FindEnvVarByName(container corev1.Container, name string) *corev1.EnvVar
- func FindIngressRuleByHttpPath(rules []networkingv1.IngressRule, path string) (*networkingv1.IngressRule, *networkingv1.HTTPIngressPath)
- func GetContainerByName(containers []corev1.Container, name string) *corev1.Container
- func GetContainerNames(containers []corev1.Container) []string
- func GetVolumeMountNames(container *corev1.Container) []string
- func GetVolumeNames(podTemplateSpec *corev1.PodTemplateSpec) []string
- func VerifyIngressRule(rules []networkingv1.IngressRule, path string, host *string, ...)
- func VerifyNoRuleWithPath(rules []networkingv1.IngressRule, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindEnvVarByName ¶
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 ¶
GetContainerByName finds a container with the given name in the given array of containers.
func GetContainerNames ¶
GetContainerNames returns an array of container names corresponding to the given array of containers.
func GetVolumeMountNames ¶ added in v1.1.0
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.