Commit 0b78ed2
m.doulabi
fix(callback_role): support custom Kubernetes cluster domains
Replace hardcoded cluster.local with KUBERNETES_SERVICE_HOST env var.
Users can now set custom cluster domains like:
- https://kubernetes.default.svc.cluster.bk1
- http://192.168.1.1:8443
Fully backwards compatible - defaults to previous behavior.
Fixes: patroni could not patch pod labels on clusters
with custom cluster domains.1 parent f332b91 commit 0b78ed2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
0 commit comments