Skip to content

Commit

Permalink
Merge pull request #2349 from dlabrecq/2245-gcp_ocp
Browse files Browse the repository at this point in the history
Enable GCP on OpenShift
  • Loading branch information
dlabrecq authored Feb 28, 2022
2 parents f6e468f + f181f16 commit 8d0bf1e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/utils/feature.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line no-shadow
export const enum FeatureType {
currency = 'currency', // Currency support https://issues.redhat.com/browse/COST-1277
ninetyDays = 'ninetyDays', // Cost Explorer 90 days feature https://issues.redhat.com/browse/COST-1670
// ninetyDays = 'ninetyDays', // Cost Explorer 90 days feature https://issues.redhat.com/browse/COST-1670
exports = 'exports', // Async exports https://issues.redhat.com/browse/COST-2223
gcpOcp = 'gcp_ocp', // GCP filtered by OpenShift https://issues.redhat.com/browse/COST-682
ibm = 'ibm', // IBM https://issues.redhat.com/browse/COST-935
Expand All @@ -18,11 +18,10 @@ export const isStageBeta = () => {
export const isFeatureVisible = (feature: FeatureType) => {
// Show in-progress features for stage-beta only
switch (feature) {
case FeatureType.ninetyDays:
return true; // Todo: Example of how to enable a feature for all envs
case FeatureType.gcpOcp:
return true; // Todo: Enable GCP filtered by OpenShift for all envs
case FeatureType.currency:
case FeatureType.exports:
case FeatureType.gcpOcp:
case FeatureType.ibm:
case FeatureType.oci:
return isStageBeta();
Expand Down

0 comments on commit 8d0bf1e

Please sign in to comment.