checkers

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 11

Documentation

Index

Constants

View Source
const AuthorizationPolicyCheckerType = "authorizationpolicy"
View Source
const DestinationRuleCheckerType = "destinationrule"
View Source
const GatewayCheckerType = "gateway"
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 VirtualCheckerType = "virtualservice"

Variables

This section is empty.

Functions

func EmptyValidValidation added in v0.17.0

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

func EmptyValidValidations added in v0.17.0

func EmptyValidValidations(name, namespace, objectType 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 {
	AuthorizationPolicies []kubernetes.IstioObject
	Namespace             string
	Namespaces            models.Namespaces
	ServiceEntries        []kubernetes.IstioObject
	Services              []core_v1.Service
	WorkloadList          models.WorkloadList
	MtlsDetails           kubernetes.MTLSDetails
	VirtualServices       []kubernetes.IstioObject
	RegistryStatus        []*kubernetes.RegistryStatus
}

func (AuthorizationPolicyChecker) Check added in v1.14.0

type Checker

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

type DestinationRulesChecker

type DestinationRulesChecker struct {
	DestinationRules []kubernetes.IstioObject
	MTLSDetails      kubernetes.MTLSDetails
	ServiceEntries   []kubernetes.IstioObject
	Namespaces       []models.Namespace
}

func (DestinationRulesChecker) Check

type GatewayChecker added in v0.11.0

type GatewayChecker struct {
	GatewaysPerNamespace  [][]kubernetes.IstioObject
	Namespace             string
	WorkloadsPerNamespace map[string]models.WorkloadList
}

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 NoServiceChecker

type NoServiceChecker struct {
	Namespace            string
	Namespaces           models.Namespaces
	IstioDetails         *kubernetes.IstioDetails
	Services             []core_v1.Service
	WorkloadList         models.WorkloadList
	GatewaysPerNamespace [][]kubernetes.IstioObject
	AuthorizationDetails *kubernetes.RBACDetails
	RegistryStatus       []*kubernetes.RegistryStatus
}

func (NoServiceChecker) Check

type PeerAuthenticationChecker added in v1.18.1

type PeerAuthenticationChecker struct {
	PeerAuthentications []kubernetes.IstioObject
	MTLSDetails         kubernetes.MTLSDetails
	WorkloadList        models.WorkloadList
}

func (PeerAuthenticationChecker) Check added in v1.18.1

type RequestAuthenticationChecker added in v1.22.1

type RequestAuthenticationChecker struct {
	RequestAuthentications []kubernetes.IstioObject
	WorkloadList           models.WorkloadList
}

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
}

func (ServiceChecker) Check added in v0.19.0

type ServiceEntryChecker added in v0.16.0

type ServiceEntryChecker struct {
	ServiceEntries []kubernetes.IstioObject
}

func (ServiceEntryChecker) Check added in v0.16.0

type SidecarChecker added in v1.15.0

type SidecarChecker struct {
	Sidecars       []kubernetes.IstioObject
	ServiceEntries []kubernetes.IstioObject
	Services       []core_v1.Service
	Namespaces     models.Namespaces
	WorkloadList   models.WorkloadList
}

func (SidecarChecker) Check added in v1.15.0

type VirtualServiceChecker

type VirtualServiceChecker struct {
	Namespace        string
	Namespaces       models.Namespaces
	DestinationRules []kubernetes.IstioObject
	VirtualServices  []kubernetes.IstioObject
}

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.

Jump to

Keyboard shortcuts

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