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

internal/server: Ensure task plugin is properly parsed when invoked #3475

Merged
merged 3 commits into from
Jun 20, 2022

Conversation

briancain
Copy link
Member

Prior to this commit, when the server install function went to json
marshall its config into a k8s task config, it would translate the k8s
config to be Requested, but the k8s platform config expected request
and would fail to parse the profile. This commit ensures that the task
runner profile properly sets request for both mem and CPU so that it can
be parsed.

Additionally, instead of small resource limits and requests, the default
ODR profile for k8s will instead set each value to "0", which according
to the k8s API is the same as being unset.

Prior to this commit, when the server install function went to json
marshall its config into a k8s task config, it would translate the k8s
config to be `Requested`, but the k8s platform config expected `request`
and would fail to parse the profile. This commit ensures that the task
runner profile properly sets request for both mem and CPU so that it can
be parsed.
Note this is actually the same as what we were doing _prior_ to this
previous commit, given that we were not properly parsing k8s task
configs.
@briancain briancain added the pr/no-changelog No automatic changelog entry required for this pull request label Jun 20, 2022
@briancain briancain requested review from a team June 20, 2022 21:40
@briancain briancain removed the pr/no-changelog No automatic changelog entry required for this pull request label Jun 20, 2022
@briancain briancain added this to the 0.9.0 milestone Jun 20, 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.

🎉

@briancain

This comment was marked as outdated.

@briancain briancain force-pushed the bug/k8s/odr-runner-profile-name branch from 5cb5510 to 42fb1a8 Compare June 20, 2022 22:31
@briancain briancain force-pushed the bug/k8s/odr-runner-profile-name branch from 42fb1a8 to 8cad554 Compare June 20, 2022 22:37
@briancain briancain merged commit f9b5e91 into main Jun 20, 2022
@briancain briancain deleted the bug/k8s/odr-runner-profile-name branch June 20, 2022 22:50
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.

2 participants