Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

builtin/docker: Do not require resources for task launch config #3486

Merged
merged 3 commits into from
Jun 22, 2022

Conversation

briancain
Copy link
Member

Prior to this commit, the task launcher was expecting Resources to be
a required plugin config option despite it not actually being required.
This was due to the TaskResources field being expected to exist in a
task plugin despite being optional. The fix, similar to how we handle
resource plugin configs in kubernetes, is to make the Resources block a
pointer so that when it's unset, the plugin config parser doesn't expect
it to be required.

Fixes #3485

Prior to this commit, the task launcher was expecting `Resources` to be
a required plugin config option despite it not actually being required.
This was due to the `TaskResources` field being expected to exist in a
task plugin despite being optional. The fix, similar to how we handle
resource plugin configs in kubernetes, is to make the Resources block a
pointer so that when it's unset, the plugin config parser doesn't expect
it to be required.

Fixes #3485
@briancain briancain added the pr/no-changelog No automatic changelog entry required for this pull request label Jun 22, 2022
@briancain briancain requested review from a team June 22, 2022 16:15
@briancain briancain removed the pr/no-changelog No automatic changelog entry required for this pull request label Jun 22, 2022
Copy link
Contributor

@krantzinator krantzinator left a comment

Choose a reason for hiding this comment

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

+1 for @xiaolin-ninja 's suggested change
🎉

@briancain briancain merged commit 29626ed into main Jun 22, 2022
@briancain briancain deleted the bug/docker/task-launcher-resources-config branch June 22, 2022 17:16
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.

Docker: The Docker task launcher expects a resources block when it shouldn't
4 participants