aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/setup_test.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2019-01-07 09:28:03 -0800
committerGravatar GitHub <noreply@github.com> 2019-01-07 09:28:03 -0800
commit53d1afbaf2bae52ae171f2d85ed9bfc1e54242a4 (patch)
tree10a4fde2ebda27f60ee5d78f7ab931998afdf89a /plugin/kubernetes/setup_test.go
parent06efc07f46399f2d194614b52d4268a624cfe3eb (diff)
downloadcoredns-53d1afbaf2bae52ae171f2d85ed9bfc1e54242a4.tar.gz
coredns-53d1afbaf2bae52ae171f2d85ed9bfc1e54242a4.tar.zst
coredns-53d1afbaf2bae52ae171f2d85ed9bfc1e54242a4.zip
Error out when multiple https endpoints are specified. (#2438)
This fix will error out when multiple https endpoints are specified, as additional work is needed to support beyond http. This fix fixes 1464. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin/kubernetes/setup_test.go')
-rw-r--r--plugin/kubernetes/setup_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugin/kubernetes/setup_test.go b/plugin/kubernetes/setup_test.go
index 97cb1ff64..2bde16437 100644
--- a/plugin/kubernetes/setup_test.go
+++ b/plugin/kubernetes/setup_test.go
@@ -439,6 +439,20 @@ kubernetes cluster.local`,
fall.Zero,
nil,
},
+ {
+ `kubernetes coredns.local {
+ endpoint http://localhost:9090 https://localhost:9091
+}`,
+ true,
+ "multiple endpoints can only accept http",
+ -1,
+ -1,
+ defaultResyncPeriod,
+ "",
+ podModeDisabled,
+ fall.Zero,
+ nil,
+ },
}
for i, test := range tests {