Documentation ¶
Index ¶
- func ResourceEventsForConfig(recCfg config.Recommendations) map[string]config.EventType
- func ShouldIgnoreEvent(recCfg config.Recommendations, sources map[string]config.Sources, ...) bool
- type AggregatedRunner
- type Factory
- type IngressBackendServiceValid
- type IngressTLSSecretValid
- type PodLabelsSet
- type PodNoLatestImageTag
- type Recommendation
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceEventsForConfig ¶
func ResourceEventsForConfig(recCfg config.Recommendations) map[string]config.EventType
ResourceEventsForConfig returns the resource event map for a given source recommendations config.
Types ¶
type AggregatedRunner ¶
type AggregatedRunner struct {
// contains filtered or unexported fields
}
AggregatedRunner contains multiple recommendations to run.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is a factory for creating recommendation sets.
func NewFactory ¶
func NewFactory(logger logrus.FieldLogger, dynamicCli dynamic.Interface) *Factory
NewFactory creates a new Factory instance.
func (*Factory) NewForSources ¶
func (f *Factory) NewForSources(sources map[string]config.Sources, mapKeyOrder []string) (AggregatedRunner, config.Recommendations)
NewForSources merges recommendation options from multiple sources, and creates a new AggregatedRunner.
type IngressBackendServiceValid ¶
type IngressBackendServiceValid struct {
// contains filtered or unexported fields
}
IngressBackendServiceValid checks if service and tls secret used in ingress specs is already present and adds recommendations to event struct accordingly
func NewIngressBackendServiceValid ¶
func NewIngressBackendServiceValid(dynamicCli dynamic.Interface) *IngressBackendServiceValid
NewIngressBackendServiceValid creates a new IngressBackendServiceValid instance.
func (*IngressBackendServiceValid) Name ¶
func (f *IngressBackendServiceValid) Name() string
Name returns the recommendation name
type IngressTLSSecretValid ¶
type IngressTLSSecretValid struct {
// contains filtered or unexported fields
}
IngressTLSSecretValid adds recommendations if TLS secrets used in Ingress specs don't exist.
func NewIngressTLSSecretValid ¶
func NewIngressTLSSecretValid(dynamicCli dynamic.Interface) *IngressTLSSecretValid
NewIngressTLSSecretValid creates a new IngressTLSSecretValid instance.
func (*IngressTLSSecretValid) Name ¶
func (f *IngressTLSSecretValid) Name() string
Name returns the recommendation name
type PodLabelsSet ¶
type PodLabelsSet struct{}
PodLabelsSet adds recommendation when newly created Pods have no labels.
func NewPodLabelsSet ¶
func NewPodLabelsSet() *PodLabelsSet
NewPodLabelsSet creates a new PodLabelsSet instance.
func (*PodLabelsSet) Name ¶
func (f *PodLabelsSet) Name() string
Name returns the recommendation name.
type PodNoLatestImageTag ¶
type PodNoLatestImageTag struct{}
PodNoLatestImageTag add recommendations if latest image tag is used in Pod containers.
func NewPodNoLatestImageTag ¶
func NewPodNoLatestImageTag() *PodNoLatestImageTag
NewPodNoLatestImageTag creates a new PodNoLatestImageTag instance.
func (*PodNoLatestImageTag) Name ¶
func (f *PodNoLatestImageTag) Name() string
Name returns the recommendation name.