Bug 1775719

Summary: default template for metering report for editor should use v1 instead of v1apha1
Product: OpenShift Container Platform Reporter: David Taylor <dtaylor>
Component: Management ConsoleAssignee: David Taylor <dtaylor>
Status: CLOSED NOTABUG QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jokerman, pruan, yapei
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1772694
: 1775720 (view as bug list) Environment:
Last Closed: 2019-11-22 16:30:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1772694, 1776339    
Bug Blocks:    

Description David Taylor 2019-11-22 16:20:52 UTC
+++ This bug was initially created as a clone of Bug #1772694 +++

Description of problem:
The default report and ReportQuries generated by the UI that populated the UI editor should ue `v1` instead of `v1alpha``.  The resulting report can still be generated but we should use the proper versioning going forward in case support for `v1apha1` is dropped.

Version-Release number of selected component (if applicable):
OCP >= 4.2

How reproducible:
always

Steps to Reproduce:
1.  Have metering installed.
2.  Administration->Chargeback
3.  Click on Create / CreateReportQuery
4.  The default template will show that it's using `v1alpha1`

This applies to creating a Report as well as ReportQuery
https://github.com/openshift/console/blob/41940c686cf55c8ed6331b539c9f78b8f49d174b/frontend/public/models/yaml-templates.ts#L200

https://github.com/openshift/console/blob/41940c686cf55c8ed6331b539c9f78b8f49d174b/frontend/public/models/yaml-templates.ts#L212

Actual results:
apiVersion: metering.openshift.io/v1alpha1

Expected results:
apiVersion: metering.openshift.io/v1


Additional info: