Documentation ¶
Index ¶
Constants ¶
const ( // PollInterval is how frequently e2e tests will poll for updates. PollInterval = 1 * time.Second // PollTimeout is how long e2e tests will wait for resource updates when polling. PollTimeout = 10 * time.Minute )
const (
// ServingNamespace is the default namespace for serving e2e tests
ServingNamespace = "serving-tests"
)
Variables ¶
var ObjectNameForTest = helpers.ObjectNameForTest
ObjectNameForTest generates a random object name based on the test name.
Functions ¶
func ListenAndServeGracefully ¶
func ListenAndServeGracefully(addr string, handler func(w http.ResponseWriter, r *http.Request))
ListenAndServeGracefully calls into ListenAndServeGracefullyWithPattern by passing handler to handle requests for "/"
func ListenAndServeGracefullyWithHandler ¶
ListenAndServeGracefullyWithHandler creates an HTTP server, listens on the defined address and handles incoming requests with the given handler. It blocks until SIGTERM is received and the underlying server has shutdown gracefully.
Types ¶
type Clients ¶
type Clients struct { KubeClient kubernetes.Interface GatewayAPIClient *GatewayAPIClients Dynamic dynamic.Interface }
Clients holds instances of interfaces for making requests to Knative Serving.
func NewClientsFromConfig ¶
NewClientsFromConfig instantiates and returns several clientsets required for making request to the Knative Serving cluster specified by the combination of clusterName and configPath. Clients can make requests within namespace.
type GatewayAPIClients ¶
type GatewayAPIClients struct {
HTTPRoutes gatewayapi.HTTPRouteInterface
}
GatewayAPIClients holds instances of interfaces for making requests to Knative networking clients.