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

fix(KFLUXUI-2): Correct GitHub App to stage environment #62

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JoaoPedroPP
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.02%. Comparing base (69a23b0) to head (ab120bc).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main      #62    +/-   ##
========================================
  Coverage   80.01%   80.02%            
========================================
  Files         569      569            
  Lines       21380    21383     +3     
  Branches     5036     5287   +251     
========================================
+ Hits        17108    17111     +3     
+ Misses       4248     4247     -1     
- Partials       24       25     +1     
Flag Coverage Δ
unittests 80.02% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@StanislavJochman
Copy link

LGTM

Comment on lines +19 to +23
const internalInstance =
(host: string) => (env: EnvironmentShortName.prod | EnvironmentShortName.stage) =>
new RegExp(`stone-${env}-([A-Za-z0-9]+).([a-z]+).([a-z0-9]+).openshiftapps.com`, 'g').test(
host,
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We shouldn't be using the regex to determine the environment. It's not reliable.
UI should read this info from the cluster config map.
example: https://github.com/redhat-appstudio/infra-deployments/pull/5168/files#diff-c0903c42c468382bfdf3dd597dcb646d4fccc9e15eddc7af1ac9ec7d3bd4b065
This is the structure of the config map.

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.

3 participants