The default port is used when there is no port number for k8s (#2598)
* k8s 没有端口号时使用默认端口 * Modify the not port test
This commit is contained in:
@@ -39,9 +39,12 @@ func TestParseTarget(t *testing.T) {
|
||||
hasErr: true,
|
||||
},
|
||||
{
|
||||
name: "no port, no colon",
|
||||
input: "k8s://ns1/my-svc",
|
||||
hasErr: true,
|
||||
name: "no port, no colon",
|
||||
input: "k8s://ns1/my-svc",
|
||||
expect: Service{
|
||||
Namespace: "ns1",
|
||||
Name: "my-svc",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "bad port",
|
||||
|
||||
Reference in New Issue
Block a user