Documentation ¶
Index ¶
- Constants
- func EmptyValidValidation(name, objectType string) (models.IstioValidationKey, *models.IstioValidation)
- func EmptyValidValidations(name, objectType string) models.IstioValidations
- type Checker
- type DestinationRulesChecker
- type GatewayChecker
- type GroupChecker
- type MeshPolicyChecker
- type NoServiceChecker
- type PolicyChecker
- type ServiceChecker
- type ServiceEntryChecker
- type ServiceRoleBindChecker
- type VirtualServiceChecker
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 ¶ added in v0.17.0
func EmptyValidValidation(name, objectType string) (models.IstioValidationKey, *models.IstioValidation)
func EmptyValidValidations ¶ added in v0.17.0
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 ¶
func (in DestinationRulesChecker) Check() models.IstioValidations
type GatewayChecker ¶ added in v0.11.0
type GatewayChecker struct { GatewaysPerNamespace [][]kubernetes.IstioObject Namespace string WorkloadList models.WorkloadList }
func (GatewayChecker) Check ¶ added in v0.11.0
func (g GatewayChecker) Check() models.IstioValidations
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 ¶ added in v0.16.0
type MeshPolicyChecker struct { MeshPolicies []kubernetes.IstioObject MTLSDetails kubernetes.MTLSDetails }
func (MeshPolicyChecker) Check ¶ added in v0.16.0
func (m MeshPolicyChecker) Check() models.IstioValidations
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 ¶
func (in NoServiceChecker) Check() models.IstioValidations
type PolicyChecker ¶ added in v0.17.0
type PolicyChecker struct { Policies []kubernetes.IstioObject MTLSDetails kubernetes.MTLSDetails }
func (PolicyChecker) Check ¶ added in v0.17.0
func (m PolicyChecker) Check() models.IstioValidations
type ServiceChecker ¶ added in v0.19.0
type ServiceChecker struct { Services []v1.Service Deployments []apps_v1.Deployment }
func (ServiceChecker) Check ¶ added in v0.19.0
func (sc ServiceChecker) Check() models.IstioValidations
type ServiceEntryChecker ¶ added in v0.16.0
type ServiceEntryChecker struct {
ServiceEntries []kubernetes.IstioObject
}
func (ServiceEntryChecker) Check ¶ added in v0.16.0
func (s ServiceEntryChecker) Check() models.IstioValidations
type ServiceRoleBindChecker ¶ added in v0.17.0
type ServiceRoleBindChecker struct {
RBACDetails kubernetes.RBACDetails
}
func (ServiceRoleBindChecker) Check ¶ added in v0.17.0
func (s ServiceRoleBindChecker) Check() models.IstioValidations
type VirtualServiceChecker ¶
type VirtualServiceChecker struct { Namespace string DestinationRules []kubernetes.IstioObject VirtualServices []kubernetes.IstioObject }
func (VirtualServiceChecker) Check ¶
func (in VirtualServiceChecker) Check() models.IstioValidations
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.