kubernetes-client/python

Add support for bookmark events

Open

#1,729 opened on 2022年2月28日

GitHub で見る
 (7 comments) (10 reactions) (0 assignees)Python (3,323 forks)batch import
help wantedkind/feature

Repository metrics

Stars
 (6,225 stars)
PR merge metrics
 (平均マージ 10d 3h) (30d で 2 merged PRs)

説明

What is the feature and why do you need it:

In kubernetes-client/python-base#234 the parsing of BOOKMARK events has been bypassed (and still is as of today). But those events exist for a reason and can be useful in some circumstances. A motivational example is this Airflow issue: https://github.com/apache/airflow/issues/21087.

As Airflows scheduler can be stopped and restarted, while many events occur on k8s, it would need to process BOOKMARK to recover its state. Sadly because those are ignored by the Python client, it cannot. Which manifests itself in varied ways (see the different issues referenced in the ticket above)

Describe the solution you'd like to see:

We'd like for the bookmark event to be parsed and yield by the watcher, so it is possible for clients to consume them.

(copied from kubernetes-client/python-base#286)

コントリビューターガイド