kubernetes-client/python

Add support for bookmark events

Open

#1 729 ouverte le 28 févr. 2022

Voir sur GitHub
 (7 commentaires) (10 réactions) (0 assignés)Python (3 323 forks)batch import
help wantedkind/feature

Métriques du dépôt

Stars
 (6 225 stars)
Métriques de merge PR
 (Merge moyen 10j 3h) (2 PRs mergées en 30 j)

Description

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)

Guide contributeur