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>
This commit is contained in:
parent
06efc07f46
commit
53d1afbaf2
3 changed files with 26 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue