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

cli: -namespace should override job namespace #10875

Merged
merged 1 commit into from
Jul 14, 2021
Merged

Conversation

tgross
Copy link
Member

@tgross tgross commented Jul 8, 2021

Fixes #9893

When a jobspec doesn't include a namespace, we provide it with the default
namespace, but this ends up overriding the explicit -namespace flag. This
changeset uses the same logic as region parsing to create an order of
precedence: the query string parameter (the -namespace flag) overrides the
API request body which overrides the jobspec.

When a jobspec doesn't include a namespace, we provide it with the default
namespace, but this ends up overriding the explicit `-namespace` flag. This
changeset uses the same logic as region parsing to create an order of
precedence: the query string parameter (the `-namespace` flag) overrides the
API request body which overrides the jobspec.
Copy link
Contributor

@notnoop notnoop left a comment

Choose a reason for hiding this comment

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

Thanks! I think I have been bitten by this before. We'll need to follow up with integration (or e2e) tests and ensure our documentation calls out ordering.

@notnoop notnoop merged commit 428174a into main Jul 14, 2021
@notnoop notnoop deleted the b-namespace-flag-override branch July 14, 2021 21:28
@notnoop notnoop mentioned this pull request Jul 28, 2021
notnoop pushed a commit that referenced this pull request Jul 29, 2021
cli: `-namespace` should override job namespace
schmichael added a commit that referenced this pull request Aug 5, 2021
schmichael added a commit that referenced this pull request Aug 6, 2021
docs: add backward incompat note about #10875
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request namespace is ignored on job register
3 participants