kubernetes/pkg/kubectl
Kubernetes Submit Queue fac05d9c81 Merge pull request #36174 from JacobTanenbaum/v2resource_fixes
Automatic merge from submit-queue

V2resource fixes

when using kubectl set resources it resets all resource fields that are not being set.

for example
$ kubectl set resources deployments nginx --limits=cpu=100m

followed by

$ kubectl set resources deployments nginx --limits=memory=256Mi

would result in the nginx deployment only limiting memory at 256Mi with the previous
limit placed on the cpu being wiped out. This behavior is corrected so that each invocation
only modifies fields set in that command and changed the testing so that the desired behavior
is checked.

Also a typo:

you must specify an update to requests or limits or (in the form of --requests/--limits)

corrected to

you must specify an update to requests or limits (in the form of --requests/--limits)

Implemented both the dry run and local flags.

Added test cases to show that both flags are operating as intended.
Removed the print statement "running in local mode" as in PR#35112

The original PR associated with these fixes where reverted due to causing a flake in hack/make-rules/test-cmd.sh, I gave the 'kubectl set resources' tests there own deployment and set the terminationGracePeriodSeconds to 0 and have run test-cmd.sh for hours without hitting the flake
2016-11-15 21:03:06 -08:00
..
cmd Merge pull request #36174 from JacobTanenbaum/v2resource_fixes 2016-11-15 21:03:06 -08:00
metricsutil include multiple versions in clientset 2016-10-29 13:30:47 -07:00
resource move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
testing Move pkg/kubectl reviewers into an alias 2016-10-28 14:54:17 -07:00
apply.go Fix typos 2016-10-15 00:21:00 +03:00
autoscale.go
bash_comp_utils.go
BUILD kubectl: add less verbose version 2016-11-10 14:07:42 -08:00
cluster_test.go [Federation][(Un)join-00] Implement federation/cluster resource generator. 2016-11-01 00:58:54 -07:00
cluster.go [Federation][(Un)join-00] Implement federation/cluster resource generator. 2016-11-01 00:58:54 -07:00
configmap_test.go
configmap.go
custom_column_printer_test.go
custom_column_printer.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04: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 Describe and get support for the updated api + tests 2016-11-09 13:39:16 +01:00
describe.go Merge pull request #35901 from justinsb/kubectl_show_labels 2016-11-10 03:12:33 -08:00
doc.go
explain.go
generate_test.go
generate.go
history.go
interfaces.go
kubectl_test.go
kubectl.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
namespace_test.go Fix namespace_test error message 2016-08-08 12:08:57 +10:00
namespace.go
OWNERS Move pkg/kubectl reviewers into an alias 2016-10-28 14:54:17 -07:00
proxy_server_test.go
proxy_server.go Fix various typos in kubectl 2016-08-02 19:51:51 +03:00
quota_test.go
quota.go
resource_filter.go add resource handling before printing 2016-09-21 10:03:59 -04:00
resource_printer_test.go Merge pull request #35901 from justinsb/kubectl_show_labels 2016-11-10 03:12:33 -08:00
resource_printer.go let printer update unstructured list 2016-11-14 10:42:28 -05:00
rollback.go rollout undo add dry-run implementation 2016-09-08 08:02:04 +08:00
rolling_updater_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
rolling_updater.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
rollout_status_test.go kubectl: add --revision flag in rollout status 2016-10-10 15:04:46 +02:00
rollout_status.go kubectl: enhancements for deployment progress deadline 2016-11-06 14:08:33 +01:00
run_test.go add port validate when --port is set or --expose=true 2016-09-01 17:24:02 +08:00
run.go Rename ScheduledJob to CronJob 2016-11-07 10:14:12 +01:00
scale_test.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
scale.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
secret_for_docker_registry_test.go
secret_for_docker_registry.go
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
secret_test.go
secret.go
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
serviceaccount.go
sorted_resource_name_list_test.go
sorted_resource_name_list.go
sorting_printer_test.go
sorting_printer.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
stop_test.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
stop.go Merge pull request #35471 from caesarxuchao/client-gen-multi-versions 2016-10-29 15:40:13 -07:00