mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
693017d2ec
commit
858ab88940
6 files changed
+56
-7
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user