Commit Graph

31 Commits

Author SHA1 Message Date
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Justin SB 3e33ac7682
Change code from glog to klog
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog.  That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Justin SB 31f408c978
Support etcd-manager in kops 1.12
In 1.12 (kops & kubenetes):

* We default etcd-manager on
* We default to etcd3
* We default to full TLS for etcd (client and peer)
* We stop allowing external access to etcd
2019-03-14 23:13:06 -04:00
Ilya Shaisultanov 712528728c dns-controller: allow configuring DNS update interval 2018-09-06 13:29:51 -06:00
Thanabodee Charoenpiriyakij 49b203e126 Fixes go vet complains
When try `make govet` on `go1.11beta1`. It complains many things
related to invalid string formatting:

```
pkg/kubemanifest/visitor.go:35: Verbose.Infof format %s has arg v of wrong type bool
pkg/kubemanifest/visitor.go:40: Verbose.Infof format %s has arg v of wrong type float64
upup/pkg/fi/cloudup/alitasks/disk.go:76: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/disk.go:91: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/launchconfiguration.go:89: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/loadbalancer.go:71: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/loadbalancer.go:125: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/scalinggroup.go:71: Verbose.Info call has possible formatting directive %q
dns-controller/pkg/dns/dnscontroller.go:603: Verbose.Infof format %s has arg records of wrong type []dns.Record
dns-controller/cmd/dns-controller/main.go:184: Verbose.Info call has possible formatting directive %q
pkg/acls/s3/storage.go:62: Verbose.Infof format %q arg u.String is a func value, not called
pkg/apis/kops/validation/validation_test.go:199: T.Fatalf format %q has arg config of wrong type *k8s.io/kops/pkg/apis/kops.DockerConfig
pkg/resources/aws/aws.go:1306: Warning call has possible formatting directive %q
pkg/resources/aws/aws.go:1313: Warning call has possible formatting directive %v
upup/pkg/fi/cloudup/aliup/ali_cloud.go:218: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/aliup/ali_cloud.go:290: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/fitasks/keypair.go:266: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/files_owner.go:56: Infof format %s has arg group of wrong type *fi.Group
upup/pkg/fi/users.go:57: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:63: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:68: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:129: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:135: Warning call has possible formatting directive %q
upup/pkg/fi/nodeup/nodetasks/file.go:313: Errorf format %q has arg e.Mode of wrong type *string
upup/pkg/fi/cloudup/awsup/aws_cloud.go:1021: Warningf format %q reads arg #2, but call has 1 arg
upup/pkg/fi/cloudup/awsup/aws_cloud.go:1025: Warningf format %q reads arg #2, but call has 1 arg
```
2018-08-22 22:48:22 +07:00
Justin Santa Barbara f03cc5dbd9 Update dnsprovider imports to use our version 2017-12-13 20:43:01 -05:00
Kubernetes Submit Queue 2b2b5971b5
Merge pull request #3859 from justinsb/upsert_dns_records
Automatic merge from submit-queue.

Use upsert when applying DNS records
2017-11-15 08:39:38 -08:00
Justin Santa Barbara 97d2546dda Use upsert when applying DNS records
Will use half the operations vs REMOVE + ADD.

Issue #3121
2017-11-15 02:15:25 -05:00
Justin Santa Barbara 14fd2d2d64 Verify that no extra records remain after a reconnection
Otherwise there's a chance that we have have extra records, particularly
in the case of a master restart and reconnect.

Fix #2572
2017-11-15 01:56:37 -05:00
Mike Splain 84daad4c78 Fix Wildcards returned as ASCII 2017-08-01 13:19:57 -04:00
Justin Santa Barbara 7c8dcc4a0d Code changes for 1.7 2017-07-02 13:10:28 -04:00
Justin Santa Barbara c8b18be9dd Gossip backed DNS 2017-04-25 01:32:21 -04:00
Miao Luo aed9f154ad Fix minor errors due to rebase. 2017-04-21 11:03:13 -07:00
Miao Luo b15014f9a3 Address review comments and add installing instructions. 2017-04-20 23:37:41 -07:00
Miao Luo 6b010c4c5e Enable CoreDNS in nodeup/protokube (#6)
* Enable CoreDNS in nodeup/protokube.

* Address comments.
2017-04-20 23:33:21 -07:00
Justin Santa Barbara 781a746aaf Fix typo: changset -> changeset 2017-04-08 02:14:21 -04:00
Justin Santa Barbara 115a4ffffc dns-controller: skip over duplicate records
Route53 considers this an error
2017-03-28 02:16:24 -04:00
Justin Santa Barbara cc5a393814 More verbose error messages on DNS errors 2017-03-14 10:26:01 -04:00
Justin Santa Barbara 4504028b9b dns-controller optimizations
* Cache list of zones
* Combine DNS changesets
* If we have to list records for a zone, cache them in the dns operation
2017-01-16 23:39:25 -05:00
Justin Santa Barbara cd2fc839f3 DNS logging tweaks 2017-01-10 11:26:25 -05:00
Justin Santa Barbara 58621dceb1 Turn down no-change logging in dns-controller 2017-01-09 20:51:49 -05:00
Chris Love 2dbda04f0d Merge pull request #1397 from justinsb/fix_1391
dns-controller: don't make spurious updates in buffer
2017-01-08 20:19:33 -07:00
Justin Santa Barbara 537085d94c dns-controller: don't make spurious updates in buffer
These will be caught later anyway, but we can save a false invalidation
and a spurious log message.
2017-01-08 21:37:12 -05:00
Justin Santa Barbara 43eb686f7c Add diagnostic message when updating DNS
In debugging, it would have been useful to see the old & new values
sometimes
2017-01-08 09:39:59 -05:00
Justin Santa Barbara 22a963d5af Rework protokube dns so it shares code with dns-controller 2017-01-03 22:33:40 -05:00
Aman 48aba161a0
Add support for annotation "internal" on services
- it adds node private IPs as DNS A records in route53
2016-11-21 12:08:20 +05:30
Justin Santa Barbara 27026ff110 Misc build fixes for dns-controller 2016-11-19 15:01:00 -05:00
chrislovecnm 8fa2aac99f fixing more headers 2016-10-15 19:20:56 -06:00
Justin Santa Barbara a529ffbb65 Configure dns-controller with ID of hosted zones
Fix #584
2016-10-06 13:12:27 -04:00
Justin Santa Barbara 8df2a8c843 Apply gofmt to dns-controller 2016-07-27 11:04:57 -04:00
Justin Santa Barbara bdb8e77079 Import code for new DNS controller
It uses the dnsprovider code in the k8s repo, and it looks for
annotations on pods, ingress, nodes & services.
2016-07-24 23:42:49 -04:00