use the Kubernetes regex for matching system names (#659)

* use the Kubernetes regex for matching system names

Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian MaltonandSebastian Malton authored and GitHub committed 2020-08-07 16:24:47 -04:00
1 parent 693017d2ec
commit 858ab88940
6 files changed
+56 -7

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ export function parseApi(path: string): IKubeApiLinkBase {
* - `GROUP` is /^D(\.D)*$/ where D is `DNS_LABEL` and length <= 253
*
* There is no well defined selection from an array of items that were
* seperated by '/'
* separated by '/'
*
* Solution is to create a huristic. Namely:
* 1. if '.' in left[0] then apiGroup <- left[0]