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

DEVPROD-13240 staging environment header for the CLI #8534

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

ybrill
Copy link
Contributor

@ybrill ybrill commented Dec 6, 2024

DEVPROD-13240

Description

The rc legacyClient strips the path out of the URL (to remove /api) so the path based routing for staging environments doesn't work. Instead, the CLI will be able to connect to the correct staging instance by specifying the X-Evergreen-Environment header.

Testing

Used the CLI to create a patch, which was previously failing because it uses rc here.

@ybrill ybrill requested a review from a team December 6, 2024 17:47
APIKey string
APIRootV2 string
UIRoot string
environment string
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a plan to use this for non-staging environments? If not we can rename to something like stagingEnvironment for clarity.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to stagingEnvironment

@ybrill ybrill requested a review from hadjri December 10, 2024 18:44
@ybrill ybrill merged commit 00533ed into evergreen-ci:main Dec 11, 2024
10 checks passed
@ybrill ybrill deleted the DEVPROD-13240_header branch December 11, 2024 22:53
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.

2 participants