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
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
Click to show internal directories.
Click to hide internal directories.