utils

package
v0.0.0-...-6138ae3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(namespace, name, externalName string, annotations map[string]string) *corev1.Service

NewService create a new service

func WaitForFuncOnEndpoints

func WaitForFuncOnEndpoints(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, f EndpointCheckFunc, retryInterval, timeout time.Duration) error

WaitForFuncOnEndpoints used to wait a valid condition on Endpoints

Types

type EndpointCheckFunc

type EndpointCheckFunc func(*corev1.Endpoints) (bool, error)

EndpointCheckFunc function to perform checks on endpoint object

Jump to

Keyboard shortcuts

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