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 logic for handling regionEndpoint #4341

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ankurk99
Copy link

@Ankurk99 Ankurk99 commented May 7, 2024

The current logic only checks the region and returns if it's empty; however, we are not validating the regionEndpoint parameter. Therefore, if the user provides only the regionEndpoint without any region, this will not be evaluated.

With the current logic we only verifies the region and return if it's
empty; we were not validating the regionEndpoint parameter.

Signed-off-by: Ankur Kothiwal <ankur.kothiwal@cern.com>
@milosgajdos
Copy link
Member

Can you point me to some docs that say the region endpoint does have a preference over setting just the region.

I've hacked up a quick test and it seems to be the case, but it'd be great to point users in some direction in case this gets brought up in the future

@Ankurk99
Copy link
Author

Ankurk99 commented May 8, 2024

I couldn't find the doc saying that the region endpoint is preferred over setting the region, but if we see here, it mentions that we have to specify an endpoint even if region is applied. This I believe is due to the logic that we check the regionName parameter before the regionEndpoint value.
Am I missing anything here?

@milosgajdos milosgajdos requested a review from corhere May 8, 2024 16:26
@milosgajdos milosgajdos requested a review from squizzi May 20, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants