Documentation ¶
Index ¶
- Constants
- func DestinationToUpstreamRef(svcDest *v1.KubernetesServiceDestination) *core.ResourceRef
- func IsKubeUpstream(upstreamName string) bool
- func KubeServicesToUpstreams(ctx context.Context, services skkube.ServiceList) v1.UpstreamList
- func NewKubernetesUpstreamClient(serviceClient skkube.ServiceClient) v1.UpstreamClient
- func ServiceToUpstream(ctx context.Context, svc *corev1.Service, port corev1.ServicePort) *gloov1.Upstream
Constants ¶
View Source
const UpstreamNamePrefix = "kube-svc:"
UpstreamNamePrefix is a prefix used to create/identify in-memory Upstreams for Kubernetes Services It contains an invalid character so any accidental attempt to write to storage fails
Variables ¶
This section is empty.
Functions ¶
func DestinationToUpstreamRef ¶
func DestinationToUpstreamRef(svcDest *v1.KubernetesServiceDestination) *core.ResourceRef
func IsKubeUpstream ¶
func KubeServicesToUpstreams ¶
func KubeServicesToUpstreams(ctx context.Context, services skkube.ServiceList) v1.UpstreamList
Public because it's needed in the translator test
func NewKubernetesUpstreamClient ¶
func NewKubernetesUpstreamClient(serviceClient skkube.ServiceClient) v1.UpstreamClient
func ServiceToUpstream ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.