resources

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package resources holds simple functions for synthesizing child resources from a ClusterIngress resource and any relevant ClusterIngress controller configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServers added in v0.5.0

func GetServers(gateway *v1alpha3.Gateway, ci *v1alpha1.ClusterIngress) []v1alpha3.Server

GetServers gets the `Servers` from `Gateway` that belongs to the given ClusterIngress.

func MakeServers added in v0.5.0

func MakeServers(ci *v1alpha1.ClusterIngress) []v1alpha3.Server

MakeServers creates the expected Gateway `Servers` according to the given ClusterIngress.

func MakeVirtualService

func MakeVirtualService(ci *v1alpha1.ClusterIngress, gateways []string) *v1alpha3.VirtualService

MakeVirtualService creates an Istio VirtualService as network programming. Such VirtualService specifies which Gateways and Hosts that it applies to, as well as the routing rules.

func UpdateGateway added in v0.5.0

func UpdateGateway(gateway *v1alpha3.Gateway, want []v1alpha3.Server, existing []v1alpha3.Server) *v1alpha3.Gateway

UpdateGateway replaces the existing servers with the wanted servers.

Types

This section is empty.

Directories

Path Synopsis
Package names holds simple functions for synthesizing resource names.
Package names holds simple functions for synthesizing resource names.

Jump to

Keyboard shortcuts

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