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 ¶
virtual service names cannot contain special characters
Types ¶
type K8sResource ¶
type K8sResource interface{}
type ServiceBuilder ¶
type ServiceBuilder struct{}
func (*ServiceBuilder) Build ¶
func (b *ServiceBuilder) Build(route *networkingv1alpha1.Route) []corev1.Service
func (*ServiceBuilder) BuildMutateFunction ¶
func (b *ServiceBuilder) BuildMutateFunction(actualService, desiredService *corev1.Service) controllerutil.MutateFn
type VirtualServiceBuilder ¶
type VirtualServiceBuilder struct {
IstioGateways []string
}
func (*VirtualServiceBuilder) Build ¶
func (b *VirtualServiceBuilder) Build(routes *networkingv1alpha1.RouteList) ([]istionetworkingv1alpha3.VirtualService, error)
func (*VirtualServiceBuilder) BuildMutateFunction ¶
func (b *VirtualServiceBuilder) BuildMutateFunction(actualVirtualService, desiredVirtualService *istionetworkingv1alpha3.VirtualService) controllerutil.MutateFn
Click to show internal directories.
Click to hide internal directories.