Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHCLOUD-31672] Add regional ocm api instances #2813

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

aneelac22
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.27%. Comparing base (150b118) to head (5e88cb3).

❗ Current head 5e88cb3 differs from pull request most recent head 6e12f31. Consider uploading reports for the commit 6e12f31 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2813   +/-   ##
=======================================
  Coverage   63.27%   63.27%           
=======================================
  Files         195      195           
  Lines        4242     4242           
  Branches      774      774           
=======================================
  Hits         2684     2684           
  Misses       1549     1549           
  Partials        9        9           
Files Coverage Δ
src/utils/iqeEnablement.ts 66.66% <ø> (ø)

@@ -16,6 +16,7 @@ const AUTH_ALLOWED_ORIGINS = [
location.origin,
/https:\/\/api(?:\.[a-z]+)?\.openshift(?:[a-z]+)?\.com/,
/https:\/\/api?\.demo-experience(?:\.[a-z]+)?\.demo?\.redhat?\.com/,
/https:\/\/api?\.aws?\.ap-southeast-1(?:\.[a-z]+)?\.openshift?\.com/,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note. We should start thinking about OCP env variables and pass this list down from chrome.

Copy link

@KevinFCormier KevinFCormier May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aneelac22 There will be many new regional endpoints following the pattern api.<PROVIDER>.<REGION>.<ENV>.openshift.com with <ENV> being omitted for production. Can we make this more generic so that we don't have to request a change for each new region?

@Hyperkid123 Hyperkid123 merged commit 68b1760 into RedHatInsights:master Apr 10, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants