resourcebuilders

package
v0.0.0-...-49d6047 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const IstioExpectedWeight = int(100)

Istio destination weights are percentage based and must sum to 100% https://istio.io/docs/concepts/traffic-management/

View Source
const MeshInternalGateway = "mesh"

"mesh" is a special reserved word on Istio VirtualServices https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#VirtualService

Variables

This section is empty.

Functions

func VirtualServiceName

func VirtualServiceName(fqdn string) string

virtual service names cannot contain special characters

Types

type K8sResource

type K8sResource interface{}

type ServiceBuilder

type ServiceBuilder struct{}

func (*ServiceBuilder) Build

func (*ServiceBuilder) BuildMutateFunction

func (b *ServiceBuilder) BuildMutateFunction(actualService, desiredService *corev1.Service) controllerutil.MutateFn

type VirtualServiceBuilder

type VirtualServiceBuilder struct {
	IstioGateways []string
}

func (*VirtualServiceBuilder) Build

func (*VirtualServiceBuilder) BuildMutateFunction

func (b *VirtualServiceBuilder) BuildMutateFunction(actualVirtualService, desiredVirtualService *istionetworkingv1alpha3.VirtualService) controllerutil.MutateFn

Jump to

Keyboard shortcuts

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