kubernetes/vendor/github.com
Kubernetes Submit Queue c444954d9c
Merge pull request #58828 from rajansandeep/configtranslate
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Kube-dns configmap translation to CoreDNS

**What this PR does / why we need it**:
Translation of kube-dns ConfigMap (StubDomains and UpstreamNameserver) to equivalent Proxy in CoreDNS.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes kubernetes/kubeadm#662

**Special notes for your reviewer**:

Currently, the translation is done as follows:
Example ConfigMap of kube-dns.
```
apiVersion: v1
data:
  federations: |
    {"foo" : "foo.feddomain.com"}
  stubDomains: |
    {"abc.com" : ["1.2.3.4"], "my.cluster.local" : ["2.3.4.5"]}
  upstreamNameservers: |
    ["8.8.8.8", "8.8.4.4"]
kind: ConfigMap
metadata:
  creationTimestamp: 2018-01-22T20:21:56Z
  name: kube-dns
  namespace: kube-system
```

CoreDNS Corefile after translation.

```
   .:53 {
        errors
        health
        kubernetes cluster.local  in-addr.arpa ip6.arpa {
           upstream  8.8.8.8 8.8.4.4
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
        }
       federation cluster.local {
           foo foo.feddomain.com
        }
        prometheus :9153
        proxy .  8.8.8.8 8.8.4.4
        cache 30
    }
    abc.com:53 {
        errors
        cache 30
        proxy . 1.2.3.4
    }
    my.cluster.local:53 {
        errors
        cache 30
        proxy . 2.3.4.5
    }
```



**Release note**:

```release-note
Kubeadm: CoreDNS supports migration of the kube-dns configuration to CoreDNS configuration when upgrading the service discovery from kube-dns to CoreDNS as part of Beta. 
```
2018-03-05 06:56:48 -08:00
..
abbot/go-http-auth update BUILD files 2017-10-15 18:18:13 -07:00
appc/spec update BUILD files 2017-10-15 18:18:13 -07:00
armon/circbuf update BUILD files 2017-10-15 18:18:13 -07:00
asaskevich/govalidator update BUILD files 2017-10-15 18:18:13 -07:00
aws/aws-sdk-go Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
Azure Update Azure GO SDK to v12.4.0-beta 2018-02-12 14:07:05 +08:00
beorn7/perks update BUILD files 2017-10-15 18:18:13 -07:00
blang/semver update BUILD files 2017-10-15 18:18:13 -07:00
chai2010/gettext-go update BUILD files 2017-10-15 18:18:13 -07:00
client9/misspell vendor misspell 2018-02-23 09:33:14 +08:00
cloudflare/cfssl update BUILD files 2017-10-15 18:18:13 -07:00
clusterhq/flocker-go update BUILD files 2017-10-15 18:18:13 -07:00
cockroachdb/cmux Version bump to etcd v3.2.13 2018-01-07 08:22:08 -08:00
codedellemc/goscaleio update BUILD files 2017-10-15 18:18:13 -07:00
codegangsta/negroni update BUILD files 2017-10-15 18:18:13 -07:00
container-storage-interface/spec run hack/godep-save.sh 2018-02-26 16:11:27 -08:00
containerd Bump runc to d5b4a3e 2018-01-12 14:22:50 -05:00
containernetworking/cni Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
coreos bump(github.com/coreos/go-oidc): 065b426bd41667456c1a924468f507673629c46b 2018-02-16 10:57:52 -08:00
cpuguy83/go-md2man update BUILD files 2017-10-15 18:18:13 -07:00
cyphar/filepath-securejoin Bump runc to d5b4a3e 2018-01-12 14:22:50 -05:00
d2g Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
davecgh/go-spew update BUILD files 2017-10-15 18:18:13 -07:00
daviddengcn/go-colortext Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
dchest/safefile Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
dgrijalva/jwt-go update BUILD files 2017-10-15 18:18:13 -07:00
docker Update godeps 2018-02-28 09:56:46 +08:00
elazarl update BUILD files 2017-10-15 18:18:13 -07:00
emicklei update BUILD files 2017-10-15 18:18:13 -07:00
euank/go-kmsg-parser update BUILD files 2017-10-15 18:18:13 -07:00
evanphx/json-patch update BUILD files 2017-10-15 18:18:13 -07:00
exponent-io/jsonpath update BUILD files 2017-10-15 18:18:13 -07:00
fatih/camelcase update BUILD files 2017-10-15 18:18:13 -07:00
fsnotify/fsnotify Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
garyburd/redigo update BUILD files 2017-10-15 18:18:13 -07:00
ghodss/yaml update BUILD files 2017-10-15 18:18:13 -07:00
go-ini/ini Update AWS SDK to 1.12.7 2017-10-27 20:19:27 -04:00
go-openapi godeps: bump go-openapi 2018-02-22 13:43:02 -08:00
godbus/dbus Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
gogo/protobuf udpate cadvisor dependency to v0.28.2 2017-11-22 08:45:26 -08:00
golang Version bump to etcd v3.2.13 2018-01-07 08:22:08 -08:00
google update cadvisor godeps and ignore per-cpu metrics 2018-02-22 09:17:02 -08:00
googleapis/gnostic Update openapi to use kube-openapi code 2017-10-20 09:21:06 -07:00
gophercloud/gophercloud Update to latest gophercloud/gophercloud 2018-02-14 14:02:57 -05:00
gorilla update BUILD files 2017-10-15 18:18:13 -07:00
gregjones/httpcache update BUILD files 2017-10-15 18:18:13 -07:00
grpc-ecosystem Version bump to grpc-gateway v1.3.0 2018-01-07 08:22:08 -08:00
hashicorp update BUILD files 2017-10-15 18:18:13 -07:00
hawkular/hawkular-client-go update BUILD files 2017-10-15 18:18:13 -07:00
heketi/heketi update BUILD files 2017-10-15 18:18:13 -07:00
howeyc/gopass Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
imdario/mergo update BUILD files 2017-10-15 18:18:13 -07:00
inconshreveable/mousetrap Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
influxdata/influxdb update BUILD files 2017-10-15 18:18:13 -07:00
JeffAshton/win_pdh Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
jmespath/go-jmespath Update AWS SDK to 1.12.7 2017-10-27 20:19:27 -04:00
jonboulle/clockwork update BUILD files 2017-10-15 18:18:13 -07:00
json-iterator/go bump(github.com/json-iterator/go): 13f86432b882000a51c6e610c620974462691a97 2017-12-13 15:11:17 +05:30
jteeuwen/go-bindata Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
kardianos/osext Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
kr Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
libopenstorage/openstorage Update openapi to use kube-openapi code 2017-10-20 09:21:06 -07:00
lpabon/godbc update BUILD files 2017-10-15 18:18:13 -07:00
magiconair/properties update BUILD files 2017-10-15 18:18:13 -07:00
mailru/easyjson update BUILD files 2017-10-15 18:18:13 -07:00
MakeNowJust/heredoc Update vendored package heredoc 2017-11-02 12:57:22 +11:00
marstr/guid Update Azure GO SDK to v12.4.0-beta 2018-02-12 14:07:05 +08:00
matttproud/golang_protobuf_extensions update BUILD files 2017-10-15 18:18:13 -07:00
mholt/caddy vendor caddy 2018-02-14 11:23:08 -05:00
Microsoft Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
miekg/dns Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
mindprince/gonvml Update cAdvisor. 2017-11-10 14:54:28 -08:00
mistifyio/go-zfs update BUILD files 2017-10-15 18:18:13 -07:00
mitchellh update BUILD files 2017-10-15 18:18:13 -07:00
mohae/deepcopy update BUILD files 2017-10-15 18:18:13 -07:00
mreiferson/go-httpclient update BUILD files 2017-10-15 18:18:13 -07:00
mrunalp/fileutils update BUILD files 2017-10-15 18:18:13 -07:00
mvdan/xurls update BUILD files 2017-10-15 18:18:13 -07:00
mxk/go-flowrate update BUILD files 2017-10-15 18:18:13 -07:00
Nvveen/Gotty update BUILD files 2017-10-15 18:18:13 -07:00
NYTimes/gziphandler update BUILD files 2017-10-15 18:18:13 -07:00
onsi Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
opencontainers bump(github.com/opencontainers/runc): 595bea022f077a9e17d7473b34fbaf1adaed9e43 2018-02-20 14:07:00 -05:00
pborman/uuid update BUILD files 2017-10-15 18:18:13 -07:00
pelletier update BUILD files 2017-10-15 18:18:13 -07:00
peterbourgon/diskv update BUILD files 2017-10-15 18:18:13 -07:00
pkg Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
pmezard/go-difflib update BUILD files 2017-10-15 18:18:13 -07:00
pquerna/cachecontrol bump(github.com/coreos/go-oidc): 065b426bd41667456c1a924468f507673629c46b 2018-02-16 10:57:52 -08:00
prometheus update BUILD files 2017-10-15 18:18:13 -07:00
PuerkitoBio update BUILD files 2017-10-15 18:18:13 -07:00
quobyte/api Update Quobyte API 2017-10-26 15:09:37 +02:00
rancher/go-rancher update BUILD files 2017-10-15 18:18:13 -07:00
renstrom/dedent update BUILD files 2017-10-15 18:18:13 -07:00
robfig/cron update BUILD files 2017-10-15 18:18:13 -07:00
rubiojr/go-vhd update BUILD files 2017-10-15 18:18:13 -07:00
russross/blackfriday update BUILD files 2017-10-15 18:18:13 -07:00
satori/go.uuid Update Azure GO SDK to v12.1.0 2018-01-04 14:18:31 +08:00
seccomp/libseccomp-golang Bump dependencies for build tag fixes 2018-02-21 12:50:32 -08:00
shurcooL/sanitized_anchor_name update BUILD files 2017-10-15 18:18:13 -07:00
sirupsen/logrus Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
spf13 bump(6644d4): spf13/cobra: support bash completion for aliases 2018-03-02 21:28:13 +05:30
storageos/go-api Update storageos api dependency to 0.3.4 2018-02-06 13:52:33 +00:00
stretchr update BUILD files 2017-10-15 18:18:13 -07:00
syndtr/gocapability Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
tools/godep Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
ugorji/go update BUILD files 2017-10-15 18:18:13 -07:00
vishvananda Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
vmware Bump dependencies for build tag fixes 2018-02-21 12:50:32 -08:00
xanzy/go-cloudstack update BUILD files 2017-10-15 18:18:13 -07:00
xiang90/probing update BUILD files 2017-10-15 18:18:13 -07:00
xyproto/simpleredis update BUILD files 2017-10-15 18:18:13 -07:00