k3s/hack/testdata
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
..
filter add a test to test-cmd.sh for apply -f with label selector 2016-09-30 00:42:35 -07:00
prune Adds a test for apply --prune --prune-whitelist 2016-11-01 14:02:31 -07:00
prune-reap kubectl: apply prune should fallback to basic delete when a resource has no reaper 2016-10-14 15:04:38 -07:00
recursive allow kubectl subcmds to process multiple resources 2016-05-01 20:27:37 -07:00
csr.yml implement kubectl procelain csr commands 2016-11-08 06:33:46 -08:00
deployment-multicontainer-resources.yaml Implemented both the dry run and local flags. 2016-11-03 12:55:19 -04:00
deployment-multicontainer.yaml Add 'kubectl set image' 2016-05-18 21:23:17 -07:00
deployment-revision1.yaml controller: proportionally scale paused and rolling deployments 2016-06-20 12:13:35 +02:00
deployment-revision2.yaml controller: proportionally scale paused and rolling deployments 2016-06-20 12:13:35 +02:00
frontend-controller.yaml
frontend-replicaset.yaml Copy replicaset example yamls to hack/testdata directory. 2016-03-10 10:53:29 -08:00
invalid-rc-with-empty-args.yaml Check for an empty value in validateField 2016-05-30 14:12:18 +10:00
list.yaml Kubectl support for validating nested objects with different ApiGroups (e.g. Lists containing objects in different api groups). Closes #24089 2016-05-09 19:38:40 -07:00
multi-resource-json-modify.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-json.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-list-modify.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-list.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-rclist-modify.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-rclist.json Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
multi-resource-svclist-modify.json
multi-resource-svclist.json
multi-resource-yaml-modify.yaml fix test-cmd multi-resource test 2016-06-22 14:58:07 -07:00
multi-resource-yaml.yaml fix test-cmd multi-resource test 2016-06-22 14:58:07 -07:00
nginx-statefulset.yaml Rename PetSet to StatefulSet in docs and examples. 2016-11-05 00:17:28 -07:00
pod-apply.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
pod-with-api-env.yaml Correctly handle secret and configMap envs in kubectl describe 2016-04-07 14:16:59 -04:00
pod-with-large-name.yaml Service names conform to RFC 1035 2016-08-02 08:42:15 -06:00
pod-with-precision.json build/pause: write in C 2016-05-04 21:45:52 -04:00
pod.yaml Update hack/test-cmd.sh to use tagged, gcr.io images 2016-04-07 17:55:22 -07:00
redis-slave-replicaset.yaml Copy replicaset example yamls to hack/testdata directory. 2016-03-10 10:53:29 -08:00
tls.crt Add a kubectl create secret tls command 2016-05-16 22:38:56 -07:00
tls.key Add a kubectl create secret tls command 2016-05-16 22:38:56 -07:00