Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Ksync watcher should reestablish connection #337

@alok87

Description

@alok87

At present ksync watcher does not reestablish connection when the event channel receives nil, we are using a higher level service to restart ksync on such failures.

We can make watcher restablish connections after some time if it receives a empty channel. Kubernetes API is timebound and we see this happening at fixed intervals only(every few minutes - will tell the exact no.os after test).

Slack discussion on this: https://kubernetes.slack.com/archives/C0EG7JC6T/p1582204821408400

This can be done by using https://github.com/kubernetes/client-go/blob/master/tools/watch/informerwatcher.go

cc 🎩@liggitt @grampelberg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions