templates

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: 17 Imported by: 0

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

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