config.load_incluster_config() while developing #1050
-
Hi all, Obviously, using "live" (in cluster), I need:
But that errors when I run locally. Has anyone come up with a solution? Edit: I must be tired. A try / except of course:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Depends on what you are trying to authenticate — Kopf itself or your own client object. If the latter, it is better to address this question to that library's communities. If the former, Kopf already authenticates with in-cluster/local configs if either the official client or pykube-ng are installed, i.e. it works "out of the box" in both environments:
|
Beta Was this translation helpful? Give feedback.
Depends on what you are trying to authenticate — Kopf itself or your own client object. If the latter, it is better to address this question to that library's communities.
If the former, Kopf already authenticates with in-cluster/local configs if either the official client or pykube-ng are installed, i.e. it works "out of the box" in both environments:
kopf/kopf/_core/intents/piggybacking.py
Line 50 in 538df59
kopf/kopf/_core/intents/piggybacking.py
Line 105 in 538df59