Skip to content

Unable to create AnalysisRuns with provider type Kayenta #541

Description

@kcboschert

When trying to create an AnalysisRun from an AnalysisTemplate with kayenta defined as the provider, we received the following error:

analysis spec invalid: metrics[0]: no provider specified

The AnalysisRun and AnalysisTemplate CRDs are both configured to allow for this value:


But it looks like the validation in the Analysis factory isn't expecting Kayenta as an option:

numProviders := 0
if metric.Provider.Prometheus != nil {
numProviders++
}
if metric.Provider.Job != nil {
numProviders++
}
if metric.Provider.Web != nil {
numProviders++
}
if metric.Provider.Wavefront != nil {
numProviders++
}
if numProviders == 0 {
return fmt.Errorf("no provider specified")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions