mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
create cluster object also for non-local sources
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
7b1b8e6321
commit
c465006a31
@ -62,10 +62,6 @@ export class ClusterManager extends Singleton {
|
|||||||
|
|
||||||
@action syncClustersFromCatalog(entities: KubernetesCluster[]) {
|
@action syncClustersFromCatalog(entities: KubernetesCluster[]) {
|
||||||
for (const entity of entities) {
|
for (const entity of entities) {
|
||||||
if (entity.metadata.source !== "local") {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const cluster = ClusterStore.getInstance().getById(entity.metadata.uid);
|
const cluster = ClusterStore.getInstance().getById(entity.metadata.uid);
|
||||||
|
|
||||||
if (!cluster) {
|
if (!cluster) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user