Documentation ¶
Overview ¶
Package resources holds simple functions for synthesizing child resources from a ClusterIngress resource and any relevant ClusterIngress controller configuration.
Index ¶
- func GetServers(gateway *v1alpha3.Gateway, ci *v1alpha1.ClusterIngress) []v1alpha3.Server
- func MakeServers(ci *v1alpha1.ClusterIngress) []v1alpha3.Server
- func MakeVirtualService(ci *v1alpha1.ClusterIngress, gateways []string) *v1alpha3.VirtualService
- func UpdateGateway(gateway *v1alpha3.Gateway, want []v1alpha3.Server, existing []v1alpha3.Server) *v1alpha3.Gateway
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServers ¶ added in v0.5.0
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.