metricproviders

package
v1.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	InclusterKubeconfig      = "in-cluster"
	AnalysisJobKubeconfigEnv = "ARGO_ROLLOUTS_ANALYSIS_JOB_KUBECONFIG"
	AnalysisJobNamespaceEnv  = "ARGO_ROLLOUTS_ANALYSIS_JOB_NAMESPACE"
)

Variables

This section is empty.

Functions

func GetAnalysisJobClientset added in v1.7.0

func GetAnalysisJobClientset(defaultClientset kubernetes.Interface) (kubernetes.Interface, bool, error)

GetAnalysisJobClientset returns kubernetes clientset for executing the analysis job metric, if the AnalysisJobKubeconfigEnv is set to InclusterKubeconfig, it will return the incluster client else if it's set to a kubeconfig file it will return the clientset corresponding to the kubeconfig file. If empty it returns the provided defaultClientset

func GetAnalysisJobNamespace added in v1.7.0

func GetAnalysisJobNamespace() string

func Type added in v0.8.0

func Type(metric v1alpha1.Metric) string

Types

type ProviderFactory

type ProviderFactory struct {
	KubeClient kubernetes.Interface
	JobLister  batchlisters.JobLister
}

func (*ProviderFactory) NewProvider

func (f *ProviderFactory) NewProvider(logCtx log.Entry, metric v1alpha1.Metric) (metric.Provider, error)

NewProvider creates the correct provider based on the provider type of the Metric

type ProviderFactoryFunc

type ProviderFactoryFunc func(logCtx log.Entry, metric v1alpha1.Metric) (metric.Provider, error)

Jump to

Keyboard shortcuts

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