resources

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LongestHost

func LongestHost(hosts []string) string

LongestHost returns the most specific host. The length is: 1. the length of the hostnames. 2. the first alphabetical order.

For example, "hello-example.default.svc.cluster.local" will be returned from the following hosts in KIngress.

  • hosts:
  • hello.default
  • hello.default.svc
  • hello.default.svc.cluster.local

func MakeHTTPRoute

func MakeHTTPRoute(
	ctx context.Context,
	ing *netv1alpha1.Ingress,
	rule *netv1alpha1.IngressRule,
) (*gwv1alpha1.HTTPRoute, error)

MakeHTTPRoute creates HTTPRoute to set up routing rules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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