ingress

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceExistenceCheck        = "ServiceExistenceCheck"
	BackendConfigAnnotationCheck = "BackendConfigAnnotationCheck"
	BackendConfigExistenceCheck  = "BackendConfigExistenceCheck"
	HealthCheckTimeoutCheck      = "HealthCheckTimeoutCheck"
	IngressRuleCheck             = "IngressRuleCheck"
	FrontendConfigExistenceCheck = "FrontendConfigExistenceCheck"
	RuleHostOverwriteCheck       = "RuleHostOverwriteCheck"
	AppProtocolAnnotationCheck   = "AppProtocolAnnotationCheck"
	L7ILBFrontendConfigCheck     = "L7ILBFrontendConfigCheck"
	L7ILBNegAnnotationCheck      = "L7ILBNegAnnotationCheck"
)

Variables

This section is empty.

Functions

func CheckAllIngresses

func CheckAllIngresses(namespace string, client kubernetes.Interface, beconfigClient beconfigclient.Interface, feConfigClient feconfigclient.Interface) report.Report

func CheckAppProtocolAnnotation

func CheckAppProtocolAnnotation(c *ServiceChecker) (string, string, string)

CheckAppProtocolAnnotation check whether the protocal annotation specified in a service is in valid format and with valid protocols.

func CheckBackendConfigAnnotation

func CheckBackendConfigAnnotation(c *ServiceChecker) (string, string, string)

CheckBackendConfigAnnotation checks the BackendConfig annotation of a service for:

whether the annotation is a valid BackendConfig json object.
whether the annotation has `default` or `ports` field.

func CheckBackendConfigExistence

func CheckBackendConfigExistence(c *BackendConfigChecker) (string, string, string)

CheckBackendConfigExistence checks whether a BackendConfig exists.

func CheckFrontendConfigExistence

func CheckFrontendConfigExistence(c *FrontendConfigChecker) (string, string, string)

CheckFrontendConfigExistence checks whether a FrontendConfig exists.

func CheckHealthCheckTimeout

func CheckHealthCheckTimeout(c *BackendConfigChecker) (string, string, string)

CheckHealthCheckTimeout checks whether timeout time is smaller than check interval in backendconfig health check configuration.

func CheckIngress

func CheckIngress(ingressName, namespace string, client kubernetes.Interface, beconfigClient beconfigclient.Interface, feConfigClient feconfigclient.Interface) report.Report

func CheckIngressRule

func CheckIngressRule(c *IngressChecker) (string, string, string)

CheckIngressRule checks whether an ingress rule has the http field.

func CheckL7ILBFrontendConfig

func CheckL7ILBFrontendConfig(c *IngressChecker) (string, string, string)

CheckL7ILBFrontendConfig checks whether an internal ingress has a frontendConfig. It will fail if an internal ingress has a frontendConfig.

func CheckL7ILBNegAnnotation

func CheckL7ILBNegAnnotation(c *ServiceChecker) (string, string, string)

CheckL7ILBNegAnnotation check whether a service which belongs to an internal ingress has a correct NEG annotation.

func CheckRuleHostOverwrite

func CheckRuleHostOverwrite(c *IngressChecker) (string, string, string)

CheckRuleHostOverwrite checks whether hosts of ingress rules are unique.

func CheckServiceExistence

func CheckServiceExistence(c *ServiceChecker) (string, string, string)

CheckServiceExistence checks whether a service exists.

func RunChecks

func RunChecks(ingresses []networkingv1.Ingress, client kubernetes.Interface, beconfigClient beconfigclient.Interface, feConfigClient feconfigclient.Interface) report.Report

Types

type BackendConfigChecker

type BackendConfigChecker struct {
	// contains filtered or unexported fields
}

type FrontendConfigChecker

type FrontendConfigChecker struct {
	// contains filtered or unexported fields
}

type IngressChecker

type IngressChecker struct {
	// contains filtered or unexported fields
}

type ServiceChecker

type ServiceChecker struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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