diff --git a/metrics-operator/converter/sli_converter.go b/metrics-operator/converter/sli_converter.go index 125c22328a..777e993d7b 100644 --- a/metrics-operator/converter/sli_converter.go +++ b/metrics-operator/converter/sli_converter.go @@ -24,7 +24,7 @@ func NewSLIConverter() *SLIConverter { func (c *SLIConverter) Convert(fileContent []byte, provider string, namespace string) (string, error) { //check that provider and namespace is set if provider == "" || namespace == "" { - return "", fmt.Errorf("--sli-provider and --sli-namespace needs to be set for conversion") + return "", fmt.Errorf("missing arguments: 'keptn-provider-name' and 'keptn-provider-namespace' needs to be set for conversion") } // unmarshall content diff --git a/metrics-operator/main.go b/metrics-operator/main.go index 91ee353fd9..6beac86a10 100644 --- a/metrics-operator/main.go +++ b/metrics-operator/main.go @@ -92,8 +92,8 @@ func main() { var disableWebhook bool var probeAddr string flag.StringVar(&SLIFilePath, "convert-sli", "", "The path the the SLI file to be converted") - flag.StringVar(&provider, "sli-provider-name", "", "The name of KeptnMetricsProvider referenced in KeptnValueTemplates") - flag.StringVar(&namespace, "sli-provider-namespace", "", "The namespace of the referenced KeptnMetricsProvider") + flag.StringVar(&provider, "keptn-provider-name", "", "The name of KeptnMetricsProvider referenced in KeptnValueTemplates") + flag.StringVar(&namespace, "keptn-provider-namespace", "", "The namespace of the referenced KeptnMetricsProvider") flag.StringVar(&SLOFilePath, "convert-slo", "", "The path the the SLO file to be converted") flag.StringVar(&analysisDefinition, "analysis-definition-name", "", "The name of AnalysisDefinition to be created") flag.StringVar(&namespace, "analysis-value-template-namespace", "", "The namespace of the referenced AnalysisValueTemplate")