Documentation
¶
Index ¶
- Constants
- Variables
- func GetStructName(v interface{}) string
- func SetupReconcilers(mgr manager.Manager) error
- type ConfigMapReconciler
- type ConfigMapUnusedRuleReconciler
- type EventFilter
- type EventHandler
- func (e *EventHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *EventHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *EventHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *EventHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
- type HPAInvalidScaleTargetRefRuleReconciler
- type HPAReplicaPercentageRuleReconciler
- type HorizontalPodAutoscalerReconciler
- type NamespaceReconciler
- type NamespaceRequiredLabelRuleReconciler
- type NotifierReconciler
- type PDBInvalidSelectorRuleReconciler
- type PDBMinAllowedDisruptionRuleReconciler
- type PodDisruptionBudgetReconciler
- type PodReconciler
- type ResourceReconciler
- type RuleReconciler
- type SecretReconciler
- type SecretUnusedRuleReconciler
- type ServiceInvalidSelectorRuleReconciler
- type ServiceReconciler
Constants ¶
const FinalizerName = "rule.finalizers.merlin.mercari.com"
const Separator = string(types.Separator)
Variables ¶
var NotifierNotFoundErr = fmt.Errorf("notifiers not found")
Functions ¶
func GetStructName ¶
func GetStructName(v interface{}) string
func SetupReconcilers ¶
Types ¶
type ConfigMapReconciler ¶
type ConfigMapReconciler struct {
ResourceReconciler
}
ConfigMapReconciler reconciles configmap and rules for configmap objects
type ConfigMapUnusedRuleReconciler ¶
type ConfigMapUnusedRuleReconciler struct {
RuleReconciler
}
ConfigMapUnusedRuleReconciler reconciles ClusterRuleConfigMapUnused
type EventFilter ¶
EventFilter determine what events we care about. Kubernetes first filter events then hands off those events to EventHandler
func (*EventFilter) Create ¶
func (e *EventFilter) Create(evt event.CreateEvent) bool
func (*EventFilter) Delete ¶
func (e *EventFilter) Delete(evt event.DeleteEvent) bool
func (*EventFilter) Generic ¶
func (e *EventFilter) Generic(evt event.GenericEvent) bool
func (*EventFilter) Update ¶
func (e *EventFilter) Update(evt event.UpdateEvent) bool
type EventHandler ¶
EventHandler determine how events should be handled. Kubernetes first uses EventFilter then hands off those events to this handler
func (*EventHandler) Create ¶
func (e *EventHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create handles events from creating resources
func (*EventHandler) Delete ¶
func (e *EventHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete handles events from deleting resources
func (*EventHandler) Generic ¶
func (e *EventHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic handles events from generic operations
func (*EventHandler) Update ¶
func (e *EventHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Update handles events from updating resources
type HPAInvalidScaleTargetRefRuleReconciler ¶
type HPAInvalidScaleTargetRefRuleReconciler struct {
RuleReconciler
}
HPAInvalidScaleTargetRefRuleReconciler reconciles rule of secret unused
type HPAReplicaPercentageRuleReconciler ¶
type HPAReplicaPercentageRuleReconciler struct {
RuleReconciler
}
HPAReplicaPercentageRuleReconciler reconciles rule of secret unused
type HorizontalPodAutoscalerReconciler ¶
type HorizontalPodAutoscalerReconciler struct {
ResourceReconciler
}
HorizontalPodAutoscalerReconciler reconciles a HorizontalPodAutoscaler object
type NamespaceReconciler ¶
type NamespaceReconciler struct {
ResourceReconciler
}
NamespaceReconciler reconciles a Namespace object
type NamespaceRequiredLabelRuleReconciler ¶
type NamespaceRequiredLabelRuleReconciler struct {
RuleReconciler
}
NamespaceRequiredLabelRuleReconciler reconciles a Namespace object
type NotifierReconciler ¶
NotifierReconciler reconciles a Notifier object
func (*NotifierReconciler) SetupWithManager ¶
func (r *NotifierReconciler) SetupWithManager(mgr ctrl.Manager, alertMetrics *prometheus.GaugeVec) error
type PDBInvalidSelectorRuleReconciler ¶
type PDBInvalidSelectorRuleReconciler struct {
RuleReconciler
}
PDBInvalidSelectorRuleReconciler reconciles clusterrulepdbinvalidselector
type PDBMinAllowedDisruptionRuleReconciler ¶
type PDBMinAllowedDisruptionRuleReconciler struct {
RuleReconciler
}
PDBMinAllowedDisruptionRuleReconciler reconciles clusterrulepdbminalloweddisruption and rulepdbminalloweddisruption
type PodDisruptionBudgetReconciler ¶
type PodDisruptionBudgetReconciler struct {
ResourceReconciler
}
PodDisruptionBudgetReconciler reconciles PodDisruptionBudgets
type PodReconciler ¶
type PodReconciler struct {
ResourceReconciler
}
PodReconciler reconciles a Pod object
type ResourceReconciler ¶
func (*ResourceReconciler) SetupWithManager ¶
type SecretReconciler ¶
type SecretReconciler struct {
ResourceReconciler
}
SecretReconciler reconciles secret and rules for secret objects
type SecretUnusedRuleReconciler ¶
type SecretUnusedRuleReconciler struct {
RuleReconciler
}
SecretUnusedReconciler reconciles ClusterRuleSecretUnused
type ServiceInvalidSelectorRuleReconciler ¶
type ServiceInvalidSelectorRuleReconciler struct {
RuleReconciler
}
ServiceInvalidSelectorRuleReconciler reconciles rules for ClusterRuleServiceInvalidSelector
type ServiceReconciler ¶
type ServiceReconciler struct {
ResourceReconciler
}
ServiceReconciler reconciles service and rules for service objects
Source Files
¶
- configmap_controller.go
- configmap_unused_rule_controller.go
- event_filter.go
- event_handler.go
- horizontalpodautoscaler_controller.go
- hpa_invalid_scale_target_ref_rule_controller.go
- hpa_replica_percentage_rule_controller.go
- namespace_controller.go
- namespace_required_label_rule_controller.go
- notifier_controller.go
- pdb_invalid_selector_rule_controller.go
- pdb_min_allowed_disruption_rule_controllre.go
- pod_controller.go
- poddisruptionbudget_controller.go
- resource_reconciler.go
- rule_reconciler.go
- secret_controller.go
- secret_unused_rule_controller.go
- service_controller.go
- service_invalid_selector_rule_controller.go
- setup_reconcilers.go
- utils.go