k3s/pkg
k8s-merge-robot be104a8271 Merge pull request #25415 from hongchaodeng/e2
Automatic merge from submit-queue

etcd_watcher: make Deleted Event.Object's version consistent

### What's the problem?

In [sendDelete()](995f022808/pkg/storage/etcd/etcd_watcher.go (L437-L442)), Deleted Event.Object's resource version will be set to the latest resource version. This is actually an assumption made by cacher that all later events should have objects with larger verions; See [here](995f022808/pkg/storage/cacher.go (L579-L581)).

In sendModify(), it could also return Deleted event. However, the resource version is still the old version, which is inconsistent behavior with sendDelete().

### What's this PR?
This PR sets the version of oldObj in sendModify() to be the latest version.
Provided unit test for it.
2016-05-14 20:46:20 -07:00
..
admission fully qualify admission resources and kinds 2016-04-26 07:55:33 -04:00
api Finish implementing policy API. 2016-05-13 17:27:58 -07:00
apimachinery Moving StorageFactory building logic to genericapiserver 2016-05-10 00:57:11 -07:00
apis Merge pull request #25551 from mml/db.store.codegen 2016-05-13 20:15:15 -07:00
apiserver It's 2016, yo. 2016-05-13 12:41:40 -07:00
auth add user.Info.GetExtra 2016-04-26 15:08:34 -04:00
capabilities
client Finish implementing policy API. 2016-05-13 17:27:58 -07:00
cloudprovider Merge pull request #24369 from Clarifai/ecr 2016-05-13 15:15:45 -07:00
controller Merge pull request #25565 from wojtek-t/traces_in_replication_controller 2016-05-13 03:41:31 -07:00
conversion Remove src and dest version - they are not used (now) 2016-05-12 10:10:35 -04:00
credentialprovider Add ap-northeast-2 2016-05-10 12:03:41 -04:00
fieldpath
fields
genericapiserver Moving federation apiserver to use genericapiserver.ServerRunOptions 2016-05-11 23:42:55 -07:00
healthz
httplog
hyperkube
kubectl Merge pull request #24090 from AdoHe/expose_rc 2016-05-14 07:15:58 -07:00
kubelet rkt: Add tests for GarbageCollect(). 2016-05-13 15:13:52 -07:00
kubemark rkt: Add tests for GarbageCollect(). 2016-05-13 15:13:52 -07:00
labels Regenerate auto-generated files 2016-03-17 09:30:02 +01:00
master Finish implementing policy API. 2016-05-13 17:27:58 -07:00
metrics 1) Add docker operation timeout metrics. 2016-05-06 10:53:13 -07:00
probe followup to add http server close method 2016-05-05 12:04:41 +08:00
proxy Merge pull request #25011 from zhouhaibing089/addclose 2016-05-09 22:32:02 -07:00
quota pod constraints func for quota validates resources 2016-05-11 14:30:46 -04:00
registry Finish implementing policy API. 2016-05-13 17:27:58 -07:00
runtime Merge pull request #25436 from smarterclayton/defend_proto 2016-05-13 10:45:58 -07:00
security PSP types 2016-05-11 18:07:35 -04:00
securitycontext retain read only root file system in determineEffectiveSecurityContext 2016-05-11 17:27:20 -04:00
serviceaccount Improve error messages in jwt_test.go 2016-04-21 11:37:14 +08:00
ssh Merge pull request #24506 from timstclair/ssh 2016-04-19 22:36:44 -07:00
storage Merge pull request #25415 from hongchaodeng/e2 2016-05-14 20:46:20 -07:00
types
ui Remove url query param that is leading to XSS issue 2016-03-22 10:35:06 -07:00
util Merge pull request #24052 from deads2k/rate-limitting-requeue 2016-05-14 06:34:15 -07:00
version Include Go version, platform, and other build info in version string 2016-03-14 13:55:28 -07:00
volume Merge pull request #24625 from pmorie/dapi-volume-atomic 2016-05-14 11:22:42 -07:00
watch Merge pull request #24789 from wojtek-t/use_proper_codec_in_client 2016-05-04 11:00:04 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00