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
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 { }
ImageTagChecker add recommendations to the event object if latest image tag is used in pod containers
func NewImageTagChecker ¶
func NewImageTagChecker() *ImageTagChecker
NewImageTagChecker creates new ImageTagChecker object
func (*ImageTagChecker) Run ¶
func (f *ImageTagChecker) Run(object interface{}, event *events.Event)
Run filers and modifies event struct
type IngressValidator ¶
type IngressValidator struct { }
IngressValidator checks if service and tls secret used in ingress specs is already present and adds recommendations to event struct accordingly
func NewIngressValidator ¶
func NewIngressValidator() *IngressValidator
NewIngressValidator returns new IngressValidator object
func (*IngressValidator) Run ¶
func (iv *IngressValidator) Run(object interface{}, event *events.Event)
Run filers and modifies event struct