mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Release 6.4.1 (#7275)
* should show resource if missing allowedResources data (#7274) Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * Release 6.4.1 Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> --------- Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
5ac90e9178
commit
33f573e405
5 files changed
+11
-6
No files matched your search
@@ -3,7 +3,7 @@
|
||||
"productName": "",
|
||||
"description": "Lens Desktop Core",
|
||||
"homepage": "https://github.com/lensapp/lens",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/lensapp/lens.git"
|
||||
|
||||
@@ -699,6 +699,11 @@ export class Cluster implements ClusterModel {
|
||||
}
|
||||
|
||||
shouldShowResource(resource: KubeApiResourceDescriptor): boolean {
|
||||
if (this.allowedResources.size === 0) {
|
||||
// better to show than hide everything
|
||||
return true;
|
||||
}
|
||||
|
||||
return this.allowedResources.has(formatKubeApiResource(resource));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user