k3s/vendor
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
..
bitbucket.org Bump dependencies for build tag fixes 2018-02-21 12:50:32 -08:00
cloud.google.com/go update BUILD files 2017-10-15 18:18:13 -07:00
github.com Merge pull request #58828 from rajansandeep/configtranslate 2018-03-05 06:56:48 -08:00
go4.org update BUILD files 2017-10-15 18:18:13 -07:00
golang.org/x Add golang.org/x/tools/benchmark/parse godep. 2018-02-14 14:22:18 +01:00
google.golang.org Add Cloud TPU v1alpha1 API dependency 2018-02-26 22:56:46 -08:00
gopkg.in Merge pull request #58317 from nikhita/bump-go-yaml 2018-02-05 18:22:21 -08:00
k8s.io Merge pull request #59674 from jennybuckley/codegen 2018-02-27 02:47:05 -08:00
vbom.ml/util update BUILD files 2017-10-15 18:18:13 -07:00
BUILD Merge pull request #58828 from rajansandeep/configtranslate 2018-03-05 06:56:48 -08:00
OWNERS Remove dep-reviewers 2018-02-26 17:04:32 -08:00