Documentation ¶
Index ¶
- Variables
- func CheckCronScheduleIsValid(schedule string) (bool, error)
- func FetchLatestEvent(ctx context.Context, kubernetesClient *kubernetes.Client, namespace string, ...) (*v1.Event, error)
- func GetAnalyzerMap() (map[string]common.IAnalyzer, map[string]common.IAnalyzer)
- func ListFilters() ([]string, []string, []string)
- type CronJobAnalyzer
- type DeploymentAnalyzer
- type DeploymentInfo
- type GatewayAnalyzer
- type GatewayClassAnalyzer
- type HTTPRouteAnalyzer
- type HpaAnalyzer
- type IngressAnalyzer
- type LogAnalyzer
- type MutatingWebhookAnalyzer
- type NetworkPolicyAnalyzer
- type NodeAnalyzer
- type PdbAnalyzer
- type PodAnalyzer
- type PodInfo
- type PvcAnalyzer
- type ReplicaSetAnalyzer
- type ReplicaSetInfo
- type ReplicationControllerInfo
- type ServiceAnalyzer
- type StatefulSetAnalyzer
- type StatefulSetInfo
- type ValidatingWebhookAnalyzer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AnalyzerErrorsMetric = promauto.NewGaugeVec(prometheus.GaugeOpts{ Name: "analyzer_errors", Help: "Number of errors detected by analyzer", }, []string{"analyzer_name", "object_name", "namespace"}) )
Functions ¶
func CheckCronScheduleIsValid ¶
Check CRON schedule format
func FetchLatestEvent ¶
func GetAnalyzerMap ¶
func ListFilters ¶
Types ¶
type CronJobAnalyzer ¶
type CronJobAnalyzer struct{}
type DeploymentAnalyzer ¶
type DeploymentAnalyzer struct { }
DeploymentAnalyzer is an analyzer that checks for misconfigured Deployments
type DeploymentInfo ¶
type DeploymentInfo struct {
*appsv1.Deployment
}
func (DeploymentInfo) GetPodSpec ¶
func (d DeploymentInfo) GetPodSpec() corev1.PodSpec
type GatewayAnalyzer ¶
type GatewayAnalyzer struct{}
type GatewayClassAnalyzer ¶
type GatewayClassAnalyzer struct{}
type HTTPRouteAnalyzer ¶
type HTTPRouteAnalyzer struct{}
type HpaAnalyzer ¶
type HpaAnalyzer struct{}
type IngressAnalyzer ¶
type IngressAnalyzer struct{}
type LogAnalyzer ¶
type LogAnalyzer struct { }
type MutatingWebhookAnalyzer ¶
type MutatingWebhookAnalyzer struct{}
type NetworkPolicyAnalyzer ¶
type NetworkPolicyAnalyzer struct{}
type NodeAnalyzer ¶
type NodeAnalyzer struct{}
type PdbAnalyzer ¶
type PdbAnalyzer struct{}
type PodAnalyzer ¶
type PodAnalyzer struct { }
type PvcAnalyzer ¶
type PvcAnalyzer struct{}
type ReplicaSetAnalyzer ¶
type ReplicaSetAnalyzer struct{}
type ReplicaSetInfo ¶
type ReplicaSetInfo struct {
*appsv1.ReplicaSet
}
define a structure for ReplicaSet
func (ReplicaSetInfo) GetPodSpec ¶
func (rs ReplicaSetInfo) GetPodSpec() corev1.PodSpec
type ReplicationControllerInfo ¶
type ReplicationControllerInfo struct {
*corev1.ReplicationController
}
define a structure for ReplicationController
func (ReplicationControllerInfo) GetPodSpec ¶
func (rc ReplicationControllerInfo) GetPodSpec() corev1.PodSpec
type ServiceAnalyzer ¶
type ServiceAnalyzer struct{}
type StatefulSetAnalyzer ¶
type StatefulSetAnalyzer struct{}
type StatefulSetInfo ¶
type StatefulSetInfo struct {
*appsv1.StatefulSet
}
define a structure for StatefulSet
func (StatefulSetInfo) GetPodSpec ¶
func (ss StatefulSetInfo) GetPodSpec() corev1.PodSpec
implement PodInfo for StatefulSetInfo
type ValidatingWebhookAnalyzer ¶
type ValidatingWebhookAnalyzer struct{}
Click to show internal directories.
Click to hide internal directories.