templates

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) (*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

CreateFromIngress - Creates all the promRules for a given Ingress

Jump to

Keyboard shortcuts

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