mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Expire is a new type of watch action
This commit is contained in:
parent
3368e12a6c
commit
da7c612bb6
@ -39,6 +39,7 @@ const (
|
||||
EtcdSet = "set"
|
||||
EtcdCAS = "compareAndSwap"
|
||||
EtcdDelete = "delete"
|
||||
EtcdExpire = "expire"
|
||||
)
|
||||
|
||||
// FilterFunc is a predicate which takes an API object and returns true
|
||||
@ -405,7 +406,7 @@ func (w *etcdWatcher) sendResult(res *etcd.Response) {
|
||||
w.sendAdd(res)
|
||||
case EtcdSet, EtcdCAS:
|
||||
w.sendModify(res)
|
||||
case EtcdDelete:
|
||||
case EtcdDelete, EtcdExpire:
|
||||
w.sendDelete(res)
|
||||
default:
|
||||
glog.Errorf("unknown action: %v", res.Action)
|
||||
|
Loading…
Reference in New Issue
Block a user