kubernetes/pkg
Jacob Tanenbaum 901bbee2fd Add 'kubectl set limit'
Add a way to set resource limits/requests on running pods

Ref: https://github.com/kubernetes/kubernetes/issues/21648

I squashed the commits to make rebasing easier
Change log:

- fixed a typo that caused the command to be run with kubectl set set instead of the correct kubectl set limit

- added a ResourcesWithPodTemplates to pkg/kubectl/cmd/util/factory.go
     instead of hardcoding these resources move there description all in one place

- Fixing some of the flow control in kubectl set limit

- update the help info

- changed the name of ResourcesWithPodTemplates to ResourcesWithPodSpecs to more accuratly describe what it is doing
    and changed the variable names to lower case to conform to go's variable naming convention

- changing the name of the command from 'set limit' to 'set resources'

- Adding the new file pkg/kubectl/cmd/set/set_resources.go

- changes to the test cases to reflect the change from 'kubectl set limit' to 'kubectl set resources'

- comment removed

- adding the man page to the git repository attempting to fix Jenkins tests

- adding the user guide

- fixed a few typos

- typo in hack/cmd-test.sh

- implamenting suggestions for command help text

- adding the dry-run flag

- removing the "remove" option in favor of zeroing out request/limits in order to remove them

- changed limits/requests to requests/limit

- changing ResourcesWithPodSpec

- updated generated docs and removed whitespace

- change priint on success message from "resource limits/requests updated" to "resource requirements updated"

- minor rebasing issues - 'hack/test-cmd.sh' now passes

- cmdutil.PrintSuccess added another argument

- fixing mungedocs failure

- removed whitespace from hack/make-rules/test-cmd.sh and an erroneous entry from pkg/cloudprovider/providers/openstack/MAINTAINERS.md

- fixed typo in Short: field of the cobra command

- rebased

- Creating a new factory in the ResourcesWithPodSpecs() so that the testing will pass

- changing ResourcesWithPodSpecs, it doesn't need to be a method of factory
2016-10-14 08:35:32 -04:00
..
admission inject authorizer when admission controller requests it 2016-10-12 13:05:34 -04:00
api Merge pull request #30145 from markturansky/limit_range_pvc 2016-10-12 20:26:59 -07:00
apimachinery remove dead mapper 2016-09-19 09:57:19 -04:00
apis Generated part for NumberReady 2016-10-12 15:36:01 +02:00
apiserver Make Kubernetes OpenAPI operation IDs unique 2016-10-12 14:54:12 -07:00
auth Remove unnecessary authorization headers after authorization is successful 2016-10-06 12:38:00 -07:00
capabilities
client remove testapi.Default.GroupVersion 2016-10-07 10:10:54 -04:00
cloudprovider Merge pull request #34730 from colemickens/colemickens-azure-specify-availabilityset 2016-10-14 04:22:21 -07:00
controller Make NodeController recognize deletion tombstones. 2016-10-13 23:36:22 -07:00
conversion Introduce GroupVersioner for capturing desired target version 2016-08-18 14:45:00 -04:00
credentialprovider remove the tmp file 2016-09-22 23:37:27 +08:00
dns move informer and controller to pkg/client/cache 2016-09-15 12:50:08 -07:00
fieldpath Fix default resource limits (node capacities) for downward api volumes 2016-08-16 14:41:17 -04:00
fields make labels, fields expose selectable requirements 2016-08-20 10:10:51 -07:00
generated Generated part for NumberReady 2016-10-12 15:36:01 +02:00
genericapiserver split genericapiserver configuration apart so that you can run without flag options 2016-10-13 13:09:53 -04:00
healthz
httplog Log useful information on 500's 2016-08-31 13:46:40 -07:00
hyperkube
kubectl Add 'kubectl set limit' 2016-10-14 08:35:32 -04:00
kubelet Merge pull request #34779 from yujuhong/status_logging 2016-10-14 04:22:32 -07:00
kubemark Kubelet Refactoring 2016-08-25 10:57:31 -07:00
labels Don't validate selector that is already validated 2016-08-22 09:39:32 +02:00
master split genericapiserver configuration apart so that you can run without flag options 2016-10-13 13:09:53 -04:00
metrics
probe
proxy Proxier unittests 2016-09-29 17:35:43 -07:00
quota Fix quota constraints func for pvc 2016-08-22 14:18:15 -04:00
registry remove legacy API prefix from generic 2016-10-12 15:32:27 -04:00
routes Make genericapiserver handler chain customizable 2016-10-05 10:32:36 -04:00
runtime Merge pull request #34010 from soltysh/fix_edit_sj 2016-10-10 06:16:29 -07:00
security Merge pull request #33500 from Random-Liu/apparmor-seccomp-cri 2016-10-03 20:34:13 -07:00
securitycontext
selection make labels, fields expose selectable requirements 2016-08-20 10:10:51 -07:00
serviceaccount Enable service account signing key rotation 2016-10-04 14:16:38 -04:00
ssh add err to return 2016-09-20 14:47:31 +08:00
storage Avoid unnecessary decoding in etcd3 client 2016-10-11 10:38:46 +02:00
types Use strongly-typed types.NodeName for a node name 2016-09-27 10:47:31 -04:00
util Merge pull request #34587 from resouer/stringflag 2016-10-14 04:22:11 -07:00
version Add +k8s:openapi-gen tag to API types 2016-09-12 18:47:03 -07:00
volume Typos and englishify pkg/volume 2016-10-03 22:39:33 +02:00
watch Race free version of FakeWatcher 2016-10-07 15:37:57 +02:00
OWNERS