checkers

package
v0.0.0-...-10c222e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DestinationRuleCheckerType = "destinationrule"
View Source
const GatewayCheckerType = "gateway"
View Source
const MeshPolicyCheckerType = "meshpolicy"
View Source
const PolicyCheckerType = "policy"
View Source
const ServiceCheckerType = "service"
View Source
const ServiceEntryCheckerType = "serviceentry"
View Source
const ServiceRoleBindingCheckerType = "servicerolebinding"
View Source
const ServiceRoleCheckerType = "servicerole"
View Source
const VirtualCheckerType = "virtualservice"

Variables

This section is empty.

Functions

func EmptyValidValidation

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

func EmptyValidValidations

func EmptyValidValidations(name, objectType string) models.IstioValidations

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

Types

type Checker

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

type DestinationRulesChecker

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

func (DestinationRulesChecker) Check

type GatewayChecker

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

func (GatewayChecker) Check

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 MeshPolicyChecker

type MeshPolicyChecker struct {
	MeshPolicies []kubernetes.IstioObject
	MTLSDetails  kubernetes.MTLSDetails
}

func (MeshPolicyChecker) Check

type NoServiceChecker

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

func (NoServiceChecker) Check

type PolicyChecker

type PolicyChecker struct {
	Policies    []kubernetes.IstioObject
	MTLSDetails kubernetes.MTLSDetails
}

func (PolicyChecker) Check

type ServiceChecker

type ServiceChecker struct {
	Services    []v1.Service
	Deployments []apps_v1.Deployment
}

func (ServiceChecker) Check

type ServiceEntryChecker

type ServiceEntryChecker struct {
	ServiceEntries []kubernetes.IstioObject
}

func (ServiceEntryChecker) Check

type ServiceRoleBindChecker

type ServiceRoleBindChecker struct {
	RBACDetails kubernetes.RBACDetails
}

func (ServiceRoleBindChecker) Check

type VirtualServiceChecker

type VirtualServiceChecker struct {
	Namespace        string
	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