aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-10-17 19:35:00 +0100
committerGravatar GitHub <noreply@github.com> 2018-10-17 19:35:00 +0100
commita044499545a0865f78799711fc167bff4d686324 (patch)
tree692357b2befee9abdd52482ec119791bc0a7c317
parentd9efa9637460e799afa065c771ff009057e2bf85 (diff)
downloadcoredns-a044499545a0865f78799711fc167bff4d686324.tar.gz
coredns-a044499545a0865f78799711fc167bff4d686324.tar.zst
coredns-a044499545a0865f78799711fc167bff4d686324.zip
kubernetes: fix the type (#2208)
client-go is a "empty interface" waste-land and we're missing an integration test so we didn't catch. Try this. Signed-off-by: Miek Gieben <miek@miek.nl>
-rw-r--r--plugin/kubernetes/controller.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/controller.go b/plugin/kubernetes/controller.go
index 1c41b6ddf..df90fcf82 100644
--- a/plugin/kubernetes/controller.go
+++ b/plugin/kubernetes/controller.go
@@ -115,7 +115,7 @@ func newdnsController(kubeClient kubernetes.Interface, opts dnsControlOpts) *dns
ListFunc: serviceListFunc(dns.client, api.NamespaceAll, dns.selector),
WatchFunc: serviceWatchFunc(dns.client, api.NamespaceAll, dns.selector),
},
- &object.Service{},
+ &api.Service{},
opts.resyncPeriod,
cache.ResourceEventHandlerFuncs{AddFunc: dns.Add, UpdateFunc: dns.Update, DeleteFunc: dns.Delete},
cache.Indexers{svcNameNamespaceIndex: svcNameNamespaceIndexFunc, svcIPIndex: svcIPIndexFunc},
@@ -128,7 +128,7 @@ func newdnsController(kubeClient kubernetes.Interface, opts dnsControlOpts) *dns
ListFunc: podListFunc(dns.client, api.NamespaceAll, dns.selector),
WatchFunc: podWatchFunc(dns.client, api.NamespaceAll, dns.selector),
},
- &object.Pod{},
+ &api.Pod{},
opts.resyncPeriod,
cache.ResourceEventHandlerFuncs{AddFunc: dns.Add, UpdateFunc: dns.Update, DeleteFunc: dns.Delete},
cache.Indexers{podIPIndex: podIPIndexFunc},
uws'>jarred/uws Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/snippets/optional-chain-with-function.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-04-21Add `bun run ${script-name}` clarification (#151)Gravatar Lawrence Chen 1-0/+4
2022-04-20[misc] Fix broken build on macOSGravatar Jarred Sumner 2-5/+11
2022-04-18[misc] explain why wasm isn't released yetGravatar Jarred Sumner 1-1/+4