diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md index 672e167df..2c7f9861e 100644 --- a/plugin/kubernetes/README.md +++ b/plugin/kubernetes/README.md @@ -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 diff --git a/plugin/kubernetes/ready.go b/plugin/kubernetes/ready.go new file mode 100644 index 000000000..2625f3b5a --- /dev/null +++ b/plugin/kubernetes/ready.go @@ -0,0 +1,4 @@ +package kubernetes + +// Ready implements the ready.Readiness interface. +func (k *Kubernetes) Ready() bool { return k.APIConn.HasSynced() }