k8shttproutes

package
v1.89.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGateway added in v1.88.0

func CheckGateway(gwName, gwNs, routeNs, cluster string, gatewayNames map[string]k8s_networking_v1.Gateway, nss models.Namespaces, validations *[]*models.IstioCheck, location string) bool

func IsGatewaySharedWithNS added in v1.88.0

func IsGatewaySharedWithNS(namespace string, cluster string, gw k8s_networking_v1.Gateway, nss models.Namespaces) bool

If K8sGateway's allowedRoutes selector matches the labels of given namespace

Types

type NoHostChecker

type NoHostChecker struct {
	K8sHTTPRoute       *k8s_networking_v1.HTTPRoute
	K8sReferenceGrants []*k8s_networking_v1beta1.ReferenceGrant
	Namespaces         models.Namespaces
	RegistryServices   []*kubernetes.RegistryService
}

func (NoHostChecker) Check

func (n NoHostChecker) Check() ([]*models.IstioCheck, bool)

type NoK8sGatewayChecker

type NoK8sGatewayChecker struct {
	Cluster      string
	GatewayNames map[string]k8s_networking_v1.Gateway
	K8sHTTPRoute *k8s_networking_v1.HTTPRoute
	Namespaces   models.Namespaces
}

func (NoK8sGatewayChecker) Check

func (s NoK8sGatewayChecker) Check() ([]*models.IstioCheck, bool)

Check validates that the HTTPRoute is pointing to an existing Gateway

func (NoK8sGatewayChecker) ValidateHTTPRouteGateways

func (s NoK8sGatewayChecker) ValidateHTTPRouteGateways(validations *[]*models.IstioCheck) bool

ValidateHTTPRouteGateways checks all HTTPRoute gateways and checks that they're found from the given list of gatewayNames. Also return index of missing gatways to show clearer error path in editor

Jump to

Keyboard shortcuts

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