Skip to content

Don't modify resource names when generating sidecar pod spec - #88

Merged
katrogan merged 2 commits into
masterfrom
ISSUE-180
Mar 5, 2020
Merged

Don't modify resource names when generating sidecar pod spec#88
katrogan merged 2 commits into
masterfrom
ISSUE-180

Conversation

@katrogan

@katrogan katrogan commented Mar 4, 2020

Copy link
Copy Markdown
Contributor

Fixes flyteorg/flyte#180 so that the vanilla flytekit gpu_request & gpu_limit attributes get respected in the primary sidecar container.

For background, we replace GPU requests/limits with the nvidia/gpu resource name.

Capitalization doesn't affect pod spec unmarshaling (tested in flyteplugins)

@kumare3

kumare3 commented Mar 4, 2020

Copy link
Copy Markdown
Contributor

Can we add a unit test?

@katrogan

katrogan commented Mar 5, 2020

Copy link
Copy Markdown
Contributor Author

@kumare3 unit tests are already updated

@katrogan
katrogan merged commit 4c0e1d1 into master Mar 5, 2020
@giordyb

giordyb commented Mar 5, 2020

Copy link
Copy Markdown

Hi, I tested this and it's still not working, see my last comment on flyteorg/flyte#180. It looks like this https://github.com/lyft/flyteplugins/blob/master/go/tasks/pluginmachinery/flytek8s/container_helper.go#L22 never actually happens with the sidecar_task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sidecar task does not work with "gpu_limit"

3 participants