Documentation ¶
Index ¶
- Constants
- func EmptyValidValidation(name, namespace, objectType string) (models.IstioValidationKey, *models.IstioValidation)
- func EmptyValidValidations(name, namespace, objectType string) models.IstioValidations
- type AuthorizationPolicyChecker
- type Checker
- type DestinationRulesChecker
- type GatewayChecker
- type GroupChecker
- type NoServiceChecker
- type PeerAuthenticationChecker
- type RequestAuthenticationChecker
- type ServiceChecker
- type ServiceEntryChecker
- type SidecarChecker
- type VirtualServiceChecker
- type WorkloadChecker
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"
View Source
const WorkloadCheckerType = "workload"
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 []security_v1beta.AuthorizationPolicy Namespace string Namespaces models.Namespaces ServiceEntries []networking_v1alpha3.ServiceEntry WorkloadList models.WorkloadList MtlsDetails kubernetes.MTLSDetails VirtualServices []networking_v1alpha3.VirtualService RegistryServices []*kubernetes.RegistryService }
func (AuthorizationPolicyChecker) Check ¶ added in v1.14.0
func (a AuthorizationPolicyChecker) Check() models.IstioValidations
type Checker ¶
type Checker interface {
Check() ([]*models.IstioCheck, bool)
}
type DestinationRulesChecker ¶
type DestinationRulesChecker struct { DestinationRules []networking_v1alpha3.DestinationRule MTLSDetails kubernetes.MTLSDetails ServiceEntries []networking_v1alpha3.ServiceEntry Namespaces []models.Namespace }
func (DestinationRulesChecker) Check ¶
func (in DestinationRulesChecker) Check() models.IstioValidations
type GatewayChecker ¶ added in v0.11.0
type GatewayChecker struct { Gateways []networking_v1alpha3.Gateway Namespace string WorkloadsPerNamespace map[string]models.WorkloadList IsGatewayToNamespace bool }
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 NoServiceChecker ¶
type NoServiceChecker struct { Namespace string Namespaces models.Namespaces IstioConfigList *models.IstioConfigList WorkloadsPerNamespace map[string]models.WorkloadList AuthorizationDetails *kubernetes.RBACDetails RegistryServices []*kubernetes.RegistryService }
func (NoServiceChecker) Check ¶
func (in NoServiceChecker) Check() models.IstioValidations
type PeerAuthenticationChecker ¶ added in v1.18.1
type PeerAuthenticationChecker struct { PeerAuthentications []security_v1beta.PeerAuthentication MTLSDetails kubernetes.MTLSDetails WorkloadList models.WorkloadList }
func (PeerAuthenticationChecker) Check ¶ added in v1.18.1
func (m PeerAuthenticationChecker) Check() models.IstioValidations
type RequestAuthenticationChecker ¶ added in v1.22.1
type RequestAuthenticationChecker struct { RequestAuthentications []security_v1beta.RequestAuthentication WorkloadList models.WorkloadList }
func (RequestAuthenticationChecker) Check ¶ added in v1.22.1
func (m RequestAuthenticationChecker) Check() models.IstioValidations
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
func (sc ServiceChecker) Check() models.IstioValidations
type ServiceEntryChecker ¶ added in v0.16.0
type ServiceEntryChecker struct { ServiceEntries []networking_v1alpha3.ServiceEntry Namespaces models.Namespaces WorkloadEntries []networking_v1alpha3.WorkloadEntry }
func (ServiceEntryChecker) Check ¶ added in v0.16.0
func (s ServiceEntryChecker) Check() models.IstioValidations
type SidecarChecker ¶ added in v1.15.0
type SidecarChecker struct { Sidecars []networking_v1alpha3.Sidecar ServiceEntries []networking_v1alpha3.ServiceEntry Namespaces models.Namespaces WorkloadList models.WorkloadList RegistryServices []*kubernetes.RegistryService }
func (SidecarChecker) Check ¶ added in v1.15.0
func (s SidecarChecker) Check() models.IstioValidations
type VirtualServiceChecker ¶
type VirtualServiceChecker struct { Namespace string Namespaces models.Namespaces VirtualServices []networking_v1alpha3.VirtualService DestinationRules []networking_v1alpha3.DestinationRule }
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.
type WorkloadChecker ¶ added in v1.47.0
type WorkloadChecker struct { Namespace string AuthorizationPolicies []security_v1beta1.AuthorizationPolicy WorkloadList models.WorkloadList }
func (WorkloadChecker) Check ¶ added in v1.47.0
func (w WorkloadChecker) Check() models.IstioValidations
Source Files ¶
Click to show internal directories.
Click to hide internal directories.