Jordan Liggitt
ad116026d9
Remove vestiges of defaulting from conversion path, switch to top-level default registration only
2017-04-12 13:36:15 -04:00
Janet Kuo
d0b5de855f
Add a test for semantically equal DaemonSet updates
2017-03-21 16:06:34 -07:00
ymqytw
710d904998
add apply cmd tests for TPR
2017-02-02 15:20:45 -08:00
Anastasis Andronidis
4bdcc03c0b
test for explicit null value propagation in apply
2017-01-31 14:22:24 -05:00
Mike Danese
96c146c8f2
promote certificates.k8s.io to beta
2017-01-19 13:13:20 -08:00
nikhiljindal
5424d50c03
Adding test-federation-cmd.sh to test kubectl with federation apiserver
2017-01-04 11:17:05 -08:00
Janet Kuo
b88bebded5
Remove initialized annotation from statefulset examples
2016-11-23 10:40:42 -08:00
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
Mike Danese
584689f182
implement kubectl procelain csr commands
2016-11-08 06:33:46 -08:00
Jimmy Cuadra
d42eabd9d2
Rename PetSet to StatefulSet in docs and examples.
2016-11-05 00:17:28 -07:00
Kubernetes Submit Queue
e4edd817af
Merge pull request #35220 from MrHohn/kubectl-apply-type
...
Automatic merge from submit-queue
Implement --prune-whitelist(-w) flag to overwrite default whitelist for --prune
From #34274 .
Updates:
As suggested, the new commits implement a default whitelist for `kubectl apply --prune`, which could be overwritten by using `--prune-whitelist`or `-w` flag. The default whitelist and example as below.
Also supports `--dry-run` for `--prune` to fix #35222 .
whitelist:
```
type pruneResource struct {
group string
version string
kind string
namespaced bool
}
*pruneResources = []pruneResource{
{"", "v1", "ConfigMap", true},
{"", "v1", "Endpoints", true},
{"", "v1", "Namespace", false},
{"", "v1", "PersistentVolumeClaim", true},
{"", "v1", "PersistentVolume", false},
{"", "v1", "Pod", true},
{"", "v1", "ReplicationController", true},
{"", "v1", "Secret", true},
{"", "v1", "Service", true},
{"batch", "v1", "Job", true},
{"extensions", "v1beta1", "DaemonSet", true},
{"extensions", "v1beta1", "Deployment", true},
{"extensions", "v1beta1", "HorizontalPodAutoscaler", true},
{"extensions", "v1beta1", "Ingress", true},
{"extensions", "v1beta1", "ReplicaSet", true},
{"apps", "v1beta1", "StatefulSet", true},
}
```
example:
```
$ kubectl apply -f /path/to/file --prune -l test=true \
-w core/v1/Pod \
-w core/v1/Service \
-w extensions/v1beta1/Deployment
```
@mikedanese
2016-11-03 18:46:17 -07:00
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