-
Notifications
You must be signed in to change notification settings - Fork 770
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
Moved cpu_shares and cpuset to unsupported keys #543
Conversation
LGTM other than the small comment. Perhaps it would be good (in the future) to advise users to use cpu_quota instead of cpu_share or cpu_set! Thanks for the contribution! |
pkg/kobject/kobject.go
Outdated
@@ -67,8 +67,6 @@ type ServiceConfig struct { | |||
Network []string `compose:"network" bundle:"Networks"` | |||
Labels map[string]string `compose:"labels" bundle:"Labels"` | |||
Annotations map[string]string `compose:"" bundle:""` | |||
CPUSet string `compose:"cpuset" bundle:""` | |||
CPUShares int64 `compose:"cpu_shares" bundle:""` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove these, as you can see in the "unsupported keys" section in compose.go, we still grab these from the docker-compose file for (possible) future integration!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, got it :)
Resolves kubernetes#272 and kubernetes#267 As there is no direct mapping of `cpushares` and `cpuset` to kubernetes, it should not be read and should be moved to unsupported keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like only issue with this was addressed
LGTM
but will let @cdrage to merge it
LGTM |
Resolves #272 and #267
As there is no direct mapping of
cpushares
andcpuset
to kubernetes,it should not be read and should be moved to unsupported keys.