fs.StringVar(&s.ZoneName,"zone-name",s.ZoneName,"Zone name, like example.com.")
fs.StringVar(&s.ZoneID,"zone-id",s.ZoneID,"Zone ID, needed if the zone name is not unique.")
fs.StringVar(&s.ServiceDnsSuffix,"service-dns-suffix",s.ServiceDnsSuffix,"DNS Suffix to use when publishing federated service names. Defaults to zone-name")
fs.IntVar(&s.ConcurrentServiceSyncs,"concurrent-service-syncs",s.ConcurrentServiceSyncs,"The number of service syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentReplicaSetSyncs,"concurrent-replicaset-syncs",s.ConcurrentReplicaSetSyncs,"The number of ReplicaSets syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
returnnil,fmt.Errorf("DNS zone %s not found.",dnsZoneName)
name:=dnsZoneName
ifdnsZoneID!=""{
name+="/"+dnsZoneID
}
iflen(dnsZones)==0{
returnnil,fmt.Errorf("DNS zone %s not found.",name)
}else{
returnnil,fmt.Errorf("DNS zone %s is ambiguous (please specify zoneID).",name)
}
}
/* getRrset is a hack around the fact that dnsprovider.ResourceRecordSets interface does not yet include a Get() method, only a List() method. TODO: Fix that.