apiserverk8s.io/apiserver/pkg/util/proxy Index | Files

package proxy

import "k8s.io/apiserver/pkg/util/proxy"

Index

Functions

func NewRequestForProxy

func NewRequestForProxy(location *url.URL, req *http.Request) (*http.Request, context.CancelFunc)

NewRequestForProxy returns a shallow copy of the original request with a context that may include a timeout for discovery requests

func ResolveCluster

func ResolveCluster(services listersv1.ServiceLister, namespace, id string, port int32) (*url.URL, error)

func ResolveEndpoint

func ResolveEndpoint(services listersv1.ServiceLister, endpoints listersv1.EndpointsLister, namespace, id string, port int32) (*url.URL, error)

ResolveEndpoint returns a URL to which one can send traffic for the specified service.

Source Files

proxy.go

Version
v0.29.0-alpha.1
Published
Sep 25, 2023
Platform
js/wasm
Imports
16 packages
Last checked
2 seconds ago

Tools for package owners.