Add a cloud-provider hook to scrub DNS for pods

GCE needs this hook and it seems general enough to include.
This commit is contained in:
Tim Hockin
2015-10-23 17:01:49 -07:00
parent f93f77766d
commit 42c7fec490
12 changed files with 139 additions and 4 deletions

View File

@@ -39,6 +39,8 @@ type Interface interface {
Routes() (Routes, bool)
// ProviderName returns the cloud provider ID.
ProviderName() string
// ScrubDNS provides an opportunity for cloud-provider-specific code to process DNS settings for pods.
ScrubDNS(nameservers, searches []string) (nsOut, srchOut []string)
}
// Clusters is an abstract, pluggable interface for clusters of containers.