Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSetI ¶ added in v0.7.0
type ClientSetI interface { AppsV1() appsv1.AppsV1Interface CoreV1() corev1.CoreV1Interface }
ClientSetI - Clientsets should implement this interface for making requests to find ingress owners
type PrometheusRuleTemplateManager ¶ added in v0.5.0
type PrometheusRuleTemplateManager struct {
// contains filtered or unexported fields
}
PrometheusRuleTemplateManager - Contains a map of all the templates in the given templates folder
func NewPrometheusRuleTemplateManager ¶ added in v0.5.0
func NewPrometheusRuleTemplateManager(directory string, clientSet ClientSetI) (*PrometheusRuleTemplateManager, error)
NewPrometheusRuleTemplateManager - Creates a new PrometheusRuleTemplateManager taking a directory as a string
func (*PrometheusRuleTemplateManager) CreateFromDeployment ¶ added in v0.6.0
func (a *PrometheusRuleTemplateManager) CreateFromDeployment(deployment *apps.Deployment, depNamespacePrometheus string) ([]*monitoringv1.PrometheusRule, error)
CreateFromDeployment - Creates all the promRules for a given Deployment
func (*PrometheusRuleTemplateManager) CreateFromIngress ¶ added in v0.5.0
func (a *PrometheusRuleTemplateManager) CreateFromIngress(ingress *networkingv1.Ingress) ([]*monitoringv1.PrometheusRule, error)
CreateFromIngress - Creates all the promRules for a given Ingress
Click to show internal directories.
Click to hide internal directories.