Commit 43c3e0ab authored by Miek Gieben's avatar Miek Gieben Committed by Chris O'Haver

plugin/kubernetes: add ready function (#2709)

* plugin/kubernetes: add ready function

Add ready function as the health function is now gone.
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>

* Fix readme
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
parent aa9c7a2e
......@@ -107,6 +107,11 @@ kubernetes [ZONES...] {
This allows the querying pod to continue searching for the service in the search path.
The search path could, for example, include another Kubernetes cluster.
## Ready
This plugin reports readiness to the ready plugin. This will happen after it has synced to the
Kubernetes API.
## Examples
Handle all queries in the `cluster.local` zone. Connect to Kubernetes in-cluster. Also handle all
......
package kubernetes
// Ready implements the ready.Readiness interface.
func (k *Kubernetes) Ready() bool { return k.APIConn.HasSynced() }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment