Jacob Tanenbaum
13afa70c81
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 previous attempt at the PR (PR#35050) was reverted for causeing a flake.
I believe that setting the deployments terminationGracePeriodSeconds to 0 should
take care of it. I ran hack/make-rules/test-cmd.sh 50 times in a row without encountering
the flake
2016-11-03 12:55:19 -04:00
Janet Kuo
c15b9470f5
Replace apps/v1alpha1 with apps/v1beta1 and manually remove generated apps/v1alpha1 files
...
Manually remove generated apps/v1alpha1 types, protobuf, and api-reference doc files
Manually remove apps/v1alpha1 folder from 1.5 generated client
2016-11-02 15:16:23 -07:00
Zihong Zheng
4523ce8f32
Adds a test for apply --prune --prune-whitelist
2016-11-01 14:02:31 -07:00
Janet Kuo
10aee82ae3
Rename PetSet API to StatefulSet
2016-10-27 17:25:10 -07:00
Mike Danese
c17a8a773d
kubectl: apply prune should fallback to basic delete when a resource has no reaper
2016-10-14 15:04:38 -07:00
Mike Danese
62960aace7
add a test for kubectl apply --prune
2016-10-06 17:49:02 -07:00
Mike Danese
6339d915a7
add a test to test-cmd.sh for apply -f with label selector
2016-09-30 00:42:35 -07:00
bprashanth
05aa040b0f
Allow changes to container image for updates
2016-08-18 16:33:51 -07:00
Michael Fraenkel
b1e7e6cf46
Service names conform to RFC 1035
2016-08-02 08:42:15 -06:00
k8s-merge-robot
7d3d784655
Merge pull request #27902 from caesarxuchao/fix-test-cmd
...
Automatic merge from submit-queue
fix test-cmd multi-resource test
See inline descriptions.
2016-06-25 14:47:30 -07:00
k8s-merge-robot
b4c81a073a
Merge pull request #25709 from asalkeld/null-deref
...
Automatic merge from submit-queue
Check for an empty value in validateField
```release-note
* Fix a panic when args was not supplied with any values.
```
reflect.TypeOf() can take a nil (it then returns a nil), but
Kind() panics on a nil.
Now the user gets the following output:
./kubectl.sh --server=http://localhost:8080 create -f ../../test-files/test-rc.yaml
error validating "../../test-files/test-rc.yaml": error validating data: unexpected nil value for field spec.template.spec.containers[0].args[0]; if you choose to ignore these errors, turn validation off with --validate=false
fixes #20627 and fixes #26927
2016-06-25 02:31:01 -07:00
Chao Xu
27f4eca5b3
fix test-cmd multi-resource test
2016-06-22 14:58:07 -07:00
Michail Kargakis
f3d2e3ff22
controller: proportionally scale paused and rolling deployments
...
Enable paused and rolling deployments to be proportionally scaled.
Also have cleanup policy work for paused deployments.
2016-06-20 12:13:35 +02:00
Angus Salkeld
5dcbc7ce5b
Check for an empty value in validateField
...
reflect.TypeOf() can take a nil (it then returns a nil), but
Kind() panics on a nil.
Fixes #20627
2016-05-30 14:12:18 +10:00
k8s-merge-robot
39f0c6ba25
Merge pull request #24719 from bprashanth/kubectl_tls
...
Automatic merge from submit-queue
Add a kubectl create secret tls command
A somewhat hasty implementation that enables progress along: https://github.com/kubernetes/kubernetes/issues/20176#issuecomment-177409516 , https://github.com/kubernetes/kubernetes/issues/24669 , https://github.com/kubernetes/kubernetes/issues/20176#issuecomment-198142836 if associated parties have spare cycles. @kubernetes/kubectl
<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24719 )
<!-- Reviewable:end -->
2016-05-22 09:40:42 -07:00
Janet Kuo
4332472bde
Add 'kubectl set image'
2016-05-18 21:23:17 -07:00
Prashanth Balasubramanian
daa8e29c5b
Add a kubectl create secret tls command
2016-05-16 22:38:56 -07:00
Phillip Wittrock
680b2b9d09
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
Muhammed Uluyol
f3690e2d5e
build/pause: write in C
...
Builds statically against glibc. References to the old pause
image have been updated.
2016-05-04 21:45:52 -04:00
Mike Metral
999c8e211e
allow kubectl subcmds to process multiple resources
...
- use resource.Visit() to recursively process resources, as well as, aggregate
errors where possible
2016-05-01 20:27:37 -07:00
k8s-merge-robot
bfc953cd4b
Merge pull request #23890 from pmorie/kubectl-describe-envs
...
Automatic merge from submit-queue
Correctly handle secret and configMap envs in kubectl describe
Fixes #23679
cc @kubernetes/kubectl @jwforres
2016-04-16 17:08:58 -07:00
Jordan Liggitt
37c86041ca
Preserve int64 data when patching
2016-04-11 16:23:28 -04:00
Erick Fejta
5fd47873dd
Update hack/test-cmd.sh to use tagged, gcr.io images
2016-04-07 17:55:22 -07:00
Paul Morie
9069cbb086
Correctly handle secret and configMap envs in kubectl describe
2016-04-07 14:16:59 -04:00
Madhusudan.C.S
9c011c6e0f
Copy replicaset example yamls to hack/testdata directory.
2016-03-10 10:53:29 -08:00
Janet Kuo
dbfb6c0169
Set RC's pod template TerminationGracePeriodSeconds to 0 in test-cmd.sh test data
2016-02-23 14:22:41 -08:00
Madhusudan.C.S
ed7ad6dcf3
Make deployments work.
2016-02-08 21:27:49 -08:00
Janet Kuo
442c75045a
Add kubectl rollout undo
2016-02-02 14:20:01 -08:00
Janet Kuo
4281497869
Test that kubectl apply update annotation only if apply is already called
2015-10-26 15:21:34 -07:00
Janet Kuo
001899e394
Enable validate when test kubectl with List
2015-10-11 20:56:15 -07:00
Janet Kuo
ee0ce32736
Add test for kubectl support of ReplicationControllerList and ServiceList
2015-10-09 09:36:23 -07:00
Alex Robinson
48c6b7ea96
Merge pull request #14728 from kargakis/truncate-inherited-service-names
...
expose: Truncate service names
2015-10-05 16:29:14 -07:00
kargakis
989806d9ec
expose: Truncate service names
...
In case the generated service inherits the exposed object's name (the user didn't specify
a name via --name), truncate it up to the maximum length for a valid service name
2015-10-05 10:39:42 +02:00
Janet Kuo
b10e86038e
Loop three types of files for each "multiple resources" test
2015-10-02 13:24:15 -07:00
Janet Kuo
7a2a5b021c
Add test of kubectl support for multiple resources
2015-10-01 14:36:17 -07:00