resources

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeService

func MakeService(ctx context.Context, ci *networkingv1alpha1.ClusterIngress, ambassadorNamespace string) (*corev1.Service, error)

MakeService makes a dummy Kubernetes Service used to provide the Ambassador config

Types

type Mapping

type Mapping struct {
	APIVersion        string            `json:"apiVersion"`
	Kind              string            `json:"kind"`
	Name              string            `json:"name"`
	Prefix            string            `json:"prefix"`
	PrefixRegex       bool              `json:"prefix_regex"`
	Service           string            `json:"service"`
	Weight            int               `json:"weight"`
	AddRequestHeaders map[string]string `json:"add_request_headers,omitempty"`
	Host              string            `json:"host"`
	HostRegex         bool              `json:"host_regex"`
	TimeoutMs         int64             `json:"timeout_ms"`
}

Mapping is an Ambassador Mapping

Jump to

Keyboard shortcuts

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