Hongchao Deng
078f2d6be9
Revert "Work around the etcd watch issue"
2016-09-26 23:54:10 -07:00
Hongchao Deng
28c489654b
work around the etcd watch issue
2016-09-20 09:26:47 -07:00
Kris
e87edf9bd5
Split path validation into a separate library
2016-08-26 08:05:20 -07:00
jianhuiz
858e515f85
ignore clusterName on create and update
2016-08-22 21:09:57 -07:00
Michal Rostecki
59ca5986dd
Print/log pointers of structs with %#v instead of %+v
...
There are many places in k8s where %+v is used to format a pointer
to struct, which isn't working as expected.
Fixes #26591
2016-08-01 22:27:56 +02:00
Michail Kargakis
93c2656d5a
api: validate generation updates
2016-07-07 13:09:48 +02:00
gmarek
2a5914d61c
Fix logic of consecutive DELETE calls when gracefull deletion is enabled
2016-07-05 10:42:50 +02:00
gmarek
638f4e1192
Setting deletion timestamp bumps object's generation
2016-07-01 16:45:43 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Jordan Liggitt
29252acd1a
Change rest storage Update interface to retrieve updated object
...
Add OldObject to admission attributes
Update resthandler Patch/Update admission plumbing
2016-05-23 21:09:26 -04:00
k8s-merge-robot
4f09f51486
Merge pull request #24800 from thockin/validation_pt8-3
...
Automatic merge from submit-queue
Make name validators return string slices
Part of the larger validation PR, broken out for easier review and merge. Builds on previous PRs in the series.
2016-05-19 02:15:27 -07:00
Tim Hockin
152c86ab06
Make name validators return string slices
2016-05-18 00:48:01 -07:00
k8s-merge-robot
6376b52b90
Merge pull request #25271 from euank/fix-missing-resttest-call
...
Automatic merge from submit-queue
test: Call forgotten resttest test
PR #3789 introduced this test, but it was never called.
This test was created, but never called.
Written, but never run.
It has neither flaked nor asserted. At its inception it was deserted.
My change gives this test a chance, to at long last finally pass.
The resttest stuff is a bit complicated and I'm not totally sure I put it in the right place @smarterclayton, want to double check this change makes sense?
2016-05-16 23:49:39 -07:00
Euan Kemp
713853d3a8
test: Call forgotten resttest test
...
PR #3789 introduced this test, but it was never called.
2016-05-11 10:55:07 -07:00
Jordan Liggitt
6c323a4f72
Remove name generation from thirdpartyresource
2016-05-09 09:27:54 -04:00
Wojciech Tyczynski
53f433f019
Remove Set() from storage.Interface.
2016-04-04 17:54:18 +02:00
Chao Xu
31b425b3a1
add delete precondition
2016-03-25 11:21:39 -07:00
goltermann
34d4eaea08
Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code.
2016-03-22 17:26:50 -07:00
Chao Xu
8566056d18
revert 20202
2016-02-28 19:03:22 -08:00
Fabio Yeon
375b4ca8d6
Revert "Revert 20202. Use other measures to prevent race in test-cmd.sh"
2016-02-26 19:25:08 -08:00
Chao Xu
4342a8c4f0
revert 20202
2016-02-19 11:37:54 -08:00
Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
Chao Xu
fdf6a0f61c
skip update when deleting with grace-period=0
2016-02-02 10:53:25 -08:00
Chao Xu
a248d1117b
remove ResourceVersion validation in client
2016-01-22 10:14:39 -08:00
Wojciech Tyczynski
58336829be
Switch to versioned ListOptions in server.
2015-12-21 14:23:37 +01:00
Wojciech Tyczynski
bf13bef955
Use unversioned.ListOptions in API server.
2015-11-24 14:42:21 +01:00
Timothy St. Clair
02851dd1b7
Removal of fakeClient and shift to storage.Interface for
...
all registry tests.
2015-11-19 10:34:30 -06:00
Wojciech Tyczynski
9c53f301f1
Merge selectors with ListOptions.
2015-10-29 15:42:57 +01:00
Wojciech Tyczynski
aa30e38183
Pass resource version to storage List operation.
2015-10-27 10:03:58 +01:00
Jordan Liggitt
63fb6c07a5
Validate names in BeforeCreate
2015-10-21 14:11:41 -04:00
Brendan Burns
77fd388485
Increase a bunch of timeouts to reduce flakes
2015-09-23 11:09:03 -07:00
Daniel Martí
586cb9126a
Move pkg/util.Time to pkg/api/unversioned.Time
...
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -07:00
Wojciech Tyczynski
2b2d6b677d
Refactor registry tests to reduce dependency on go-etcd.
2015-09-04 09:52:54 +02:00
Wojciech Tyczynski
97b4a64e2c
Refactor registry etcd delete tests
2015-09-03 09:05:17 +02:00
Wojciech Tyczynski
6dfe5b4b5a
Refactoring of watch etcd tests.
2015-09-01 09:24:16 +02:00
nikhiljindal
13ecd8a72c
Adding deployment registry and exposing deployments in master
2015-08-31 10:47:04 -07:00
Wojciech Tyczynski
836be0c432
Refactoring of update etcd tests.
2015-08-28 15:47:40 +02:00
Wojciech Tyczynski
61de4fc34d
Refactoring of create etcd tests.
2015-08-24 15:11:00 +02:00
Clayton Coleman
02dbb95447
Add TerminationGracePeriodSeconds to API
...
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Wojciech Tyczynski
dcc302ab38
Refactoring of list etcd tests.
2015-08-19 13:56:23 +02:00
Robert Bailey
08e6a43c1d
Revert "Merge pull request #9165 from smarterclayton/graceful"
...
This reverts commit 4f856b595d
, reversing
changes made to d78525a83b
.
Conflicts:
pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Clayton Coleman
89f1f3b1b8
Alter graceful deletion to not use TTL
...
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.
Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Clayton Coleman
b842a7dd15
Revert "Revert "Gracefully delete pods from the Kubelet""
...
This reverts commit 98115facfd
.
2015-08-18 08:57:02 -04:00
Wojciech Tyczynski
6cea2c8940
Prepare for refactoring registry etcd tests
2015-08-18 09:53:23 +02:00
Jerzy Szczepkowski
f09a08d15a
Refactoring of get etcd tests.
...
Refactoring of get etcd tests: introudced new generic resttest, TestGet; Converted all etcd tests to use it.
2015-08-13 12:14:04 +02:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Filip Grzadkowski
98115facfd
Revert "Gracefully delete pods from the Kubelet"
2015-06-02 23:40:05 +02:00
Clayton Coleman
72ee028cab
Gracefully delete pods from the Kubelet
...
This commit wires together the graceful delete option for pods
on the Kubelet. When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default. The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.
When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker. When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00