kubernetes/hack/make-rules
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
..
helpers Make all useage of sort deterministic 2016-10-20 16:47:20 -04:00
build.sh Add a verbosity concept to kubernetes scripts 2016-08-04 22:01:22 -07:00
cross.sh Bundle kubemark in test tarball instead of server tarball 2016-09-26 11:06:48 -07:00
test-cmd.sh Merge pull request #36174 from JacobTanenbaum/v2resource_fixes 2016-11-15 21:03:06 -08:00
test-e2e-node.sh Handle interrupt properly, wrap focus and skip with quote. 2016-11-08 00:12:14 -08:00
test-integration.sh Make all useage of sort deterministic 2016-10-20 16:47:20 -04:00
test-kubeadm-cmd.sh Adding CLI tests for kubeadm. 2016-10-31 11:12:51 -07:00
test.sh Merge pull request #32427 from Random-Liu/system-verification 2016-11-06 17:12:39 -08:00
verify.sh add update-staging-client-go.sh and verify-staging-client-go.sh; 2016-10-29 14:20:39 -07:00
vet.sh fix go vet errors 2016-08-10 16:45:41 -07:00