Documentation ¶
Index ¶
- func GetSelectorLabels(s kubernetes.IstioObject) map[string]string
- func GetWorkloadSelectorLabels(s kubernetes.IstioObject) map[string]string
- func HasSelector(s kubernetes.IstioObject) bool
- func HasWorkloadSelector(s kubernetes.IstioObject) bool
- type ExportToNamespaceChecker
- type GenericMultiMatchChecker
- type GenericNoWorkloadFoundChecker
- type KeyWithIndex
- type ReferenceMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelectorLabels ¶
func GetSelectorLabels(s kubernetes.IstioObject) map[string]string
func GetWorkloadSelectorLabels ¶
func GetWorkloadSelectorLabels(s kubernetes.IstioObject) map[string]string
func HasSelector ¶
func HasSelector(s kubernetes.IstioObject) bool
func HasWorkloadSelector ¶
func HasWorkloadSelector(s kubernetes.IstioObject) bool
Types ¶
type ExportToNamespaceChecker ¶ added in v1.38.1
type ExportToNamespaceChecker struct { IstioObject kubernetes.IstioObject Namespaces models.Namespaces }
func (ExportToNamespaceChecker) Check ¶ added in v1.38.1
func (p ExportToNamespaceChecker) Check() ([]*models.IstioCheck, bool)
type GenericMultiMatchChecker ¶
type GenericMultiMatchChecker struct { SubjectType string Subjects []kubernetes.IstioObject WorkloadList models.WorkloadList HasSelector func(s kubernetes.IstioObject) bool GetSelectorLabels func(s kubernetes.IstioObject) map[string]string Path string }
func SelectorMultiMatchChecker ¶
func SelectorMultiMatchChecker(subjectType string, subjects []kubernetes.IstioObject, workloadList models.WorkloadList) GenericMultiMatchChecker
func WorkloadSelectorMultiMatchChecker ¶
func WorkloadSelectorMultiMatchChecker(subjectType string, subjects []kubernetes.IstioObject, workloadList models.WorkloadList) GenericMultiMatchChecker
func (GenericMultiMatchChecker) Check ¶
func (m GenericMultiMatchChecker) Check() models.IstioValidations
type GenericNoWorkloadFoundChecker ¶
type GenericNoWorkloadFoundChecker struct { SubjectType string Subject kubernetes.IstioObject WorkloadList models.WorkloadList GetSelectorLabels func(s kubernetes.IstioObject) map[string]string Path string }
func SelectorNoWorkloadFoundChecker ¶
func SelectorNoWorkloadFoundChecker(subjectType string, subject kubernetes.IstioObject, workloadList models.WorkloadList) GenericNoWorkloadFoundChecker
func WorkloadSelectorNoWorkloadFoundChecker ¶
func WorkloadSelectorNoWorkloadFoundChecker(subjectType string, subject kubernetes.IstioObject, workloadList models.WorkloadList) GenericNoWorkloadFoundChecker
func (GenericNoWorkloadFoundChecker) Check ¶
func (wsc GenericNoWorkloadFoundChecker) Check() ([]*models.IstioCheck, bool)
type KeyWithIndex ¶
type KeyWithIndex struct { Index int Key *models.IstioValidationKey }
type ReferenceMap ¶
type ReferenceMap map[models.IstioValidationKey][]models.IstioValidationKey
func (ReferenceMap) Add ¶
func (ws ReferenceMap) Add(wk, sk models.IstioValidationKey)
func (ReferenceMap) Get ¶
func (ws ReferenceMap) Get(wk models.IstioValidationKey) []models.IstioValidationKey
func (ReferenceMap) HasMultipleReferences ¶
func (ws ReferenceMap) HasMultipleReferences(wk models.IstioValidationKey) bool
Click to show internal directories.
Click to hide internal directories.