Documentation
¶
Index ¶
- func FindNamespaceFromService(service string) string
- func ValidSecret(name, namespace string) (*apiV1.Secret, error)
- func ValidService(name, namespace string) (*apiV1.Service, error)
- func ValidServicePort(name, namespace string, port int32) (*apiV1.Service, error)
- type ImageTagChecker
- type IngressValidator
- type JobStatusChecker
- type PodLabelChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNamespaceFromService ¶
FindNamespaceFromService returns namespace from fully qualified domain name
func ValidSecret ¶
ValidSecret return Secret object if the secret is present in the specified object
func ValidService ¶
ValidService returns Service object is service given service exists in the given namespace
Types ¶
type ImageTagChecker ¶
type ImageTagChecker struct {
Description string
}
ImageTagChecker add recommendations to the event object if latest image tag is used in pod containers
func (ImageTagChecker) Describe ¶ added in v0.8.0
func (f ImageTagChecker) Describe() string
Describe filter
func (ImageTagChecker) Run ¶
func (f ImageTagChecker) Run(object interface{}, event *events.Event)
Run filers and modifies event struct
type IngressValidator ¶
type IngressValidator struct {
Description string
}
IngressValidator checks if service and tls secret used in ingress specs is already present and adds recommendations to event struct accordingly
func (IngressValidator) Describe ¶ added in v0.8.0
func (iv IngressValidator) Describe() string
Describe filter
func (IngressValidator) Run ¶
func (iv IngressValidator) Run(object interface{}, event *events.Event)
Run filers and modifies event struct
type JobStatusChecker ¶ added in v0.8.0
type JobStatusChecker struct {
Description string
}
JobStatusChecker checks job status and adds message in the events structure
func (JobStatusChecker) Describe ¶ added in v0.8.0
func (f JobStatusChecker) Describe() string
Describe filter
func (JobStatusChecker) Run ¶ added in v0.8.0
func (f JobStatusChecker) Run(object interface{}, event *events.Event)
Run filers and modifies event struct
type PodLabelChecker ¶ added in v0.7.0
type PodLabelChecker struct {
Description string
}
PodLabelChecker add recommendations to the event object if pod created without any labels
func (PodLabelChecker) Describe ¶ added in v0.8.0
func (f PodLabelChecker) Describe() string
Describe filter
func (PodLabelChecker) Run ¶ added in v0.7.0
func (f PodLabelChecker) Run(object interface{}, event *events.Event)
Run filters and modifies event struct