kubernetes-client/python

Add support for bookmark events

Open

#1729 aperta il 28 feb 2022

Vedi su GitHub
 (7 commenti) (10 reazioni) (0 assegnatari)Python (3323 fork)batch import
help wantedkind/feature

Metriche repository

Star
 (6225 star)
Metriche merge PR
 (Merge medio 10g 3h) (2 PR mergiate in 30 g)

Descrizione

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)

Guida contributor