-
Notifications
You must be signed in to change notification settings - Fork 155
Parse OBJ endpoint domain dynamically #851
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
base: dev
Are you sure you want to change the base?
Parse OBJ endpoint domain dynamically #851
Conversation
vshanthe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enables the OBJ plugin to work with non-production Linode environments by dynamically resolving OBJ endpoint domains from the LINODE_CLI_API_HOST environment variable instead of using hardcoded production domains.
Changes:
- Extracts environment subdomain from
LINODE_CLI_API_HOSTto construct appropriate OBJ domains - Updates
BASE_URL_TEMPLATEandBASE_WEBSITE_TEMPLATEto use dynamically resolved domains - Adds regex pattern matching to parse the API host and derive the corresponding OBJ domain
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
da05cae to
07395a8
Compare
📝 Description
Enables using OBJ plugin with non-production environments by resolving OBJ endpoints dynamically from the
LINODE_CLI_API_HOSTenvironment variable, which configures the environment that the CLI is pointing at.✔️ How to Test
Pointing at a non-production environment (i.e. DevCloud), attempt to run various OBJ plugin CLI commands