checkers

package
v1.89.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 25 Imported by: 11

Documentation

Index

Constants

View Source
const AuthorizationPolicyCheckerType = "authorizationpolicy"
View Source
const DestinationRuleCheckerType = "destinationrule"
View Source
const GatewayCheckerType = "gateway"
View Source
const K8sGRPCRouteCheckerType = "k8sgrpcroute"
View Source
const K8sGatewayCheckerType = "k8sgateway"
View Source
const K8sHTTPRouteCheckerType = "k8shttproute"
View Source
const K8sReferenceGrantCheckerType = "k8sreferencegrant"
View Source
const PeerAuthenticationCheckerType = "peerauthentication"
View Source
const RequestAuthenticationCheckerType = "requestauthentication"
View Source
const ServiceCheckerType = "service"
View Source
const ServiceEntryCheckerType = "serviceentry"
View Source
const ServiceRoleCheckerType = "servicerole"
View Source
const SidecarCheckerType = "sidecar"
View Source
const TelemetryCheckerType = "telemetry"
View Source
const VirtualCheckerType = "virtualservice"
View Source
const WasmPluginCheckerType = "wasmplugin"
View Source
const WorkloadCheckerType = "workload"

Variables

This section is empty.

Functions

func EmptyValidValidation added in v0.17.0

func EmptyValidValidation(name, namespace, objectType, cluster string) (models.IstioValidationKey, *models.IstioValidation)

func EmptyValidValidations added in v0.17.0

func EmptyValidValidations(name, namespace, objectType, cluster string) models.IstioValidations

EmptyValidValidation returns a stub validation object which can be used by checkers

Types

type AuthorizationPolicyChecker added in v1.14.0

type AuthorizationPolicyChecker struct {
	Cluster               string
	MtlsDetails           kubernetes.MTLSDetails
	Namespaces            models.Namespaces
	PolicyAllowAny        bool
	RegistryServices      []*kubernetes.RegistryService
	ServiceAccounts       map[string][]string
	ServiceEntries        []*networking_v1.ServiceEntry
	AuthorizationPolicies []*security_v1.AuthorizationPolicy
	VirtualServices       []*networking_v1.VirtualService
	WorkloadsPerNamespace map[string]models.WorkloadList
}

func (AuthorizationPolicyChecker) Check added in v1.14.0

type Checker

type Checker interface {
	Check() ([]*models.IstioCheck, bool)
}

type DestinationRulesChecker

type DestinationRulesChecker struct {
	DestinationRules []*networking_v1.DestinationRule
	MTLSDetails      kubernetes.MTLSDetails
	ServiceEntries   []*networking_v1.ServiceEntry
	Namespaces       models.Namespaces
	Cluster          string
}

func (DestinationRulesChecker) Check

type GatewayChecker added in v0.11.0

type GatewayChecker struct {
	Gateways              []*networking_v1.Gateway
	WorkloadsPerNamespace map[string]models.WorkloadList
	IsGatewayToNamespace  bool
	Cluster               string
}

func (GatewayChecker) Check added in v0.11.0

Check runs checks for the all namespaces actions as well as for the single namespace validations

type GroupChecker

type GroupChecker interface {
	Check() models.IstioValidations
}

type K8sGRPCRouteChecker added in v1.87.0

type K8sGRPCRouteChecker struct {
	Cluster            string
	K8sGateways        []*k8s_networking_v1.Gateway
	K8sGRPCRoutes      []*k8s_networking_v1.GRPCRoute
	K8sReferenceGrants []*k8s_networking_v1beta1.ReferenceGrant
	Namespaces         models.Namespaces
	RegistryServices   []*kubernetes.RegistryService
}

func (K8sGRPCRouteChecker) Check added in v1.87.0

Check runs checks for the all namespaces actions as well as for the single namespace validations

type K8sGatewayChecker added in v1.63.0

type K8sGatewayChecker struct {
	K8sGateways    []*k8s_networking_v1.Gateway
	GatewayClasses []config.GatewayAPIClass
	Cluster        string
}

func (K8sGatewayChecker) Check added in v1.63.0

Check runs checks for the all namespaces actions as well as for the single namespace validations

type K8sHTTPRouteChecker added in v1.63.0

type K8sHTTPRouteChecker struct {
	Cluster            string
	K8sGateways        []*k8s_networking_v1.Gateway
	K8sHTTPRoutes      []*k8s_networking_v1.HTTPRoute
	K8sReferenceGrants []*k8s_networking_v1beta1.ReferenceGrant
	Namespaces         models.Namespaces
	RegistryServices   []*kubernetes.RegistryService
}

func (K8sHTTPRouteChecker) Check added in v1.63.0

Check runs checks for the all namespaces actions as well as for the single namespace validations

type K8sReferenceGrantChecker added in v1.79.0

type K8sReferenceGrantChecker struct {
	Cluster            string
	K8sReferenceGrants []*k8s_networking_v1beta1.ReferenceGrant
	Namespaces         models.Namespaces
}

func (K8sReferenceGrantChecker) Check added in v1.79.0

Check runs checks for the all namespaces actions as well as for the single namespace validations

type NoServiceChecker

type NoServiceChecker struct {
	Namespaces            models.Namespaces
	IstioConfigList       *models.IstioConfigList
	WorkloadsPerNamespace map[string]models.WorkloadList
	AuthorizationDetails  *kubernetes.RBACDetails
	RegistryServices      []*kubernetes.RegistryService
	PolicyAllowAny        bool
	Cluster               string
}

func (NoServiceChecker) Check

type PeerAuthenticationChecker added in v1.18.1

type PeerAuthenticationChecker struct {
	PeerAuthentications   []*security_v1.PeerAuthentication
	MTLSDetails           kubernetes.MTLSDetails
	WorkloadsPerNamespace map[string]models.WorkloadList
	Cluster               string
}

func (PeerAuthenticationChecker) Check added in v1.18.1

type RequestAuthenticationChecker added in v1.22.1

type RequestAuthenticationChecker struct {
	RequestAuthentications []*security_v1.RequestAuthentication
	WorkloadsPerNamespace  map[string]models.WorkloadList
	Cluster                string
}

func (RequestAuthenticationChecker) Check added in v1.22.1

type ServiceChecker added in v0.19.0

type ServiceChecker struct {
	Services    []v1.Service
	Deployments []apps_v1.Deployment
	Pods        []core_v1.Pod
	Cluster     string
}

func (ServiceChecker) Check added in v0.19.0

type ServiceEntryChecker added in v0.16.0

type ServiceEntryChecker struct {
	ServiceEntries  []*networking_v1.ServiceEntry
	Namespaces      models.Namespaces
	WorkloadEntries []*networking_v1.WorkloadEntry
	Cluster         string
}

func (ServiceEntryChecker) Check added in v0.16.0

type SidecarChecker added in v1.15.0

type SidecarChecker struct {
	Sidecars              []*networking_v1.Sidecar
	ServiceEntries        []*networking_v1.ServiceEntry
	Namespaces            models.Namespaces
	WorkloadsPerNamespace map[string]models.WorkloadList
	RegistryServices      []*kubernetes.RegistryService
	Cluster               string
}

func (SidecarChecker) Check added in v1.15.0

type TelemetryChecker added in v1.56.0

type TelemetryChecker struct {
	Namespaces  models.Namespaces
	Telemetries []*telemetry_v1.Telemetry
}

func (TelemetryChecker) Check added in v1.56.0

An Object Checker runs all checkers for an specific object type (i.e.: pod, route rule,...) It run two kinds of checkers: 1. Individual checks: validating individual objects. 2. Group checks: validating behaviour between configurations.

type VirtualServiceChecker

type VirtualServiceChecker struct {
	Namespaces       models.Namespaces
	Cluster          string
	VirtualServices  []*networking_v1.VirtualService
	DestinationRules []*networking_v1.DestinationRule
}

func (VirtualServiceChecker) Check

An Object Checker runs all checkers for an specific object type (i.e.: pod, route rule,...) It run two kinds of checkers: 1. Individual checks: validating individual objects. 2. Group checks: validating behaviour between configurations.

type WasmPluginChecker added in v1.56.0

type WasmPluginChecker struct {
	Namespaces  models.Namespaces
	WasmPlugins []*extentions_v1alpha1.WasmPlugin
}

func (WasmPluginChecker) Check added in v1.56.0

An Object Checker runs all checkers for an specific object type (i.e.: pod, route rule,...) It run two kinds of checkers: 1. Individual checks: validating individual objects. 2. Group checks: validating behaviour between configurations.

type WorkloadChecker added in v1.47.0

type WorkloadChecker struct {
	AuthorizationPolicies []*security_v1.AuthorizationPolicy
	WorkloadsPerNamespace map[string]models.WorkloadList
	Cluster               string
}

func (WorkloadChecker) Check added in v1.47.0

Jump to

Keyboard shortcuts

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