kubernetes/pkg/kubectl
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
..
cmd Add 'kubectl set limit' 2016-10-14 08:35:32 -04:00
metricsutil Fix printing container usage. 2016-09-14 12:11:24 +02:00
resource remove testapi.Default.GroupVersion 2016-10-07 10:10:54 -04:00
testing Update generated files due to dependency shift. 2016-08-09 10:41:09 -05:00
apply.go delete private interface with no references in package 2016-09-20 00:13:16 +00:00
autoscale.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
bash_comp_utils.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
configmap_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
configmap.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
custom_column_printer_test.go 24133 fix: --no-headers works with custom columns now 2016-07-07 10:04:09 +02:00
custom_column_printer.go Simplify the output in AfterPrint() 2016-09-08 09:42:17 +10:00
deployment_test.go Add "create deployment" sub-command 2016-08-08 13:24:30 +10:00
deployment.go Add "create deployment" sub-command 2016-08-08 13:24:30 +10:00
describe_test.go kubectl: move events sorting interface to the api for general use 2016-09-18 19:25:42 +02:00
describe.go Enable kubectl describe rs to work when apiserver does not support pods 2016-10-04 13:27:31 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
explain.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
history.go kubectl: refactor rollout history to be more configurable 2016-07-12 10:36:14 +02:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubectl_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubectl.go make shortcut expanding restmapper handle all 2016-09-15 11:03:51 -04:00
namespace_test.go Fix namespace_test error message 2016-08-08 12:08:57 +10:00
namespace.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
OWNERS
proxy_server_test.go Make "attach" and "exec" rejection in proxy more explicit 2016-07-19 20:50:19 +02:00
proxy_server.go Fix various typos in kubectl 2016-08-02 19:51:51 +03:00
quota_test.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
quota.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
resource_filter.go add resource handling before printing 2016-09-21 10:03:59 -04:00
resource_printer_test.go Add NumberReady to DaemonSet status 2016-10-12 15:15:10 +02:00
resource_printer.go Add NumberReady to DaemonSet status 2016-10-12 15:15:10 +02:00
rollback.go rollout undo add dry-run implementation 2016-09-08 08:02:04 +08:00
rolling_updater_test.go remove testapi.Default.GroupVersion 2016-10-07 10:10:54 -04:00
rolling_updater.go convert rolling updater to generated client 2016-09-12 07:38:34 -04:00
rollout_status_test.go kubectl: add --revision flag in rollout status 2016-10-10 15:04:46 +02:00
rollout_status.go kubectl: add --revision flag in rollout status 2016-10-10 15:04:46 +02:00
run_test.go add port validate when --port is set or --expose=true 2016-09-01 17:24:02 +08:00
run.go use len > 0 to replace port > 0 2016-09-28 10:23:25 +08:00
scale_test.go convert rest of kubectl to generated clients 2016-09-12 08:22:34 -04:00
scale.go change petset replicas type from int to int32 2016-10-08 17:13:20 +08:00
secret_for_docker_registry_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_docker_registry.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_for_tls_test.go the created path should be closed in test case 2016-09-06 11:08:52 +08:00
secret_for_tls.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
secret.go Move IsSecretKey into util/validation 2016-07-03 02:19:09 -07:00
service_basic_test.go Add "create service" sub-commands 2016-08-08 12:31:21 +10:00
service_basic.go make portallocator.ErrNotInRange a type 2016-10-04 13:19:24 -04:00
service_test.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
service.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
serviceaccount_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serviceaccount.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_resource_name_list_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorted_resource_name_list.go Merge pull request #28110 from mfojtik/describe-volume-mounts 2016-06-30 17:15:05 -07:00
sorting_printer_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
sorting_printer.go Simplify the output in AfterPrint() 2016-09-08 09:42:17 +10:00
stop_test.go convert rest of kubectl to generated clients 2016-09-12 08:22:34 -04:00
stop.go convert rest of kubectl to generated clients 2016-09-12 08:22:34 -04:00
version.go convert more command to use a generated clientset 2016-09-12 07:38:34 -04:00