controller

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObjectMetaKey

func GetObjectMetaKey(meta metav1.Object) string

func PrometheusRulesByKey

func PrometheusRulesByKey(prometheusrules []*monitoringv1.PrometheusRule) map[string]*monitoringv1.PrometheusRule

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	promclientset promclientset.Interface,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	promInformerFactory prominformers.SharedInformerFactory,

	templateManager *templates.PrometheusRuleTemplateManager) *Controller

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL