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
- func ListFilters() ([]string, []string, []string)
- type CronJobAnalyzer
- type DeploymentAnalyzer
- type DeploymentInfo
- type HpaAnalyzer
- type IngressAnalyzer
- type NetworkPolicyAnalyzer
- type NodeAnalyzer
- type PdbAnalyzer
- type PodAnalyzer
- type PodInfo
- type PvcAnalyzer
- type ReplicaSetAnalyzer
- type ReplicaSetInfo
- type ReplicationControllerInfo
- type ServiceAnalyzer
- type StatefulSetAnalyzer
- type StatefulSetInfo
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 ¶ added in v0.2.2
Check CRON schedule format
func FetchLatestEvent ¶ added in v0.1.7
func GetAnalyzerMap ¶ added in v0.2.0
func ListFilters ¶ added in v0.1.5
Types ¶
type CronJobAnalyzer ¶ added in v0.2.2
type CronJobAnalyzer struct{}
type DeploymentAnalyzer ¶ added in v0.2.2
type DeploymentAnalyzer struct { }
DeploymentAnalyzer is an analyzer that checks for misconfigured Deployments
type DeploymentInfo ¶ added in v0.2.4
type DeploymentInfo struct {
*appsv1.Deployment
}
func (DeploymentInfo) GetPodSpec ¶ added in v0.2.4
func (d DeploymentInfo) GetPodSpec() corev1.PodSpec
type HpaAnalyzer ¶ added in v0.1.8
type HpaAnalyzer struct{}
type IngressAnalyzer ¶ added in v0.1.8
type IngressAnalyzer struct{}
type NetworkPolicyAnalyzer ¶ added in v0.2.2
type NetworkPolicyAnalyzer struct{}
type NodeAnalyzer ¶ added in v0.2.3
type NodeAnalyzer struct{}
type PdbAnalyzer ¶ added in v0.1.8
type PdbAnalyzer struct{}
type PodAnalyzer ¶ added in v0.1.8
type PodAnalyzer struct { }
type PvcAnalyzer ¶ added in v0.1.8
type PvcAnalyzer struct{}
type ReplicaSetAnalyzer ¶ added in v0.1.8
type ReplicaSetAnalyzer struct{}
type ReplicaSetInfo ¶ added in v0.2.4
type ReplicaSetInfo struct {
*appsv1.ReplicaSet
}
define a structure for ReplicaSet
func (ReplicaSetInfo) GetPodSpec ¶ added in v0.2.4
func (rs ReplicaSetInfo) GetPodSpec() corev1.PodSpec
type ReplicationControllerInfo ¶ added in v0.2.4
type ReplicationControllerInfo struct {
*corev1.ReplicationController
}
define a structure for ReplicationController
func (ReplicationControllerInfo) GetPodSpec ¶ added in v0.2.4
func (rc ReplicationControllerInfo) GetPodSpec() corev1.PodSpec
type ServiceAnalyzer ¶ added in v0.1.8
type ServiceAnalyzer struct{}
type StatefulSetAnalyzer ¶ added in v0.2.1
type StatefulSetAnalyzer struct{}
type StatefulSetInfo ¶ added in v0.2.4
type StatefulSetInfo struct {
*appsv1.StatefulSet
}
define a structure for StatefulSet
func (StatefulSetInfo) GetPodSpec ¶ added in v0.2.4
func (ss StatefulSetInfo) GetPodSpec() corev1.PodSpec
implement PodInfo for StatefulSetInfo
Click to show internal directories.
Click to hide internal directories.