@kapeta/local-cluster-service 0.33.3 → 0.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.33.4](https://github.com/kapetacom/local-cluster-service/compare/v0.33.3...v0.33.4) (2024-01-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update fallback for SHOW_PIXEL_GRID ([22058c7](https://github.com/kapetacom/local-cluster-service/commit/22058c7ad02c1cf5bd4c21b8860dd696b21107b1))
7
+
1
8
  ## [0.33.3](https://github.com/kapetacom/local-cluster-service/compare/v0.33.2...v0.33.3) (2024-01-02)
2
9
 
3
10
 
@@ -103,7 +103,7 @@ class FilesystemManager {
103
103
  storageService_1.storageService.put('app', RELEASE_CHANNEL, channel);
104
104
  }
105
105
  getShowPixelGrid() {
106
- return storageService_1.storageService.get('app', SHOW_PIXEL_GRID, false);
106
+ return storageService_1.storageService.get('app', SHOW_PIXEL_GRID, true);
107
107
  }
108
108
  setShowPixelGrid(show) {
109
109
  storageService_1.storageService.put('app', SHOW_PIXEL_GRID, show);
@@ -376,6 +376,11 @@ class InstanceManager {
376
376
  // Not an operator
377
377
  return Promise.resolve();
378
378
  }
379
+ // Check if the operator has a local definition, if not we skip it since we can't start it
380
+ if (!asset.definition.spec.local) {
381
+ console.log('Skipping operator since it as no local definition: %s', consumer.kind);
382
+ return Promise.resolve();
383
+ }
379
384
  console.log('Ensuring resource: %s in %s', consumerUri.id, systemId);
380
385
  return operatorManager_1.operatorManager.ensureResource(systemId, consumerUri.fullName, consumerUri.version);
381
386
  });
@@ -103,7 +103,7 @@ class FilesystemManager {
103
103
  storageService_1.storageService.put('app', RELEASE_CHANNEL, channel);
104
104
  }
105
105
  getShowPixelGrid() {
106
- return storageService_1.storageService.get('app', SHOW_PIXEL_GRID, false);
106
+ return storageService_1.storageService.get('app', SHOW_PIXEL_GRID, true);
107
107
  }
108
108
  setShowPixelGrid(show) {
109
109
  storageService_1.storageService.put('app', SHOW_PIXEL_GRID, show);
@@ -376,6 +376,11 @@ class InstanceManager {
376
376
  // Not an operator
377
377
  return Promise.resolve();
378
378
  }
379
+ // Check if the operator has a local definition, if not we skip it since we can't start it
380
+ if (!asset.definition.spec.local) {
381
+ console.log('Skipping operator since it as no local definition: %s', consumer.kind);
382
+ return Promise.resolve();
383
+ }
379
384
  console.log('Ensuring resource: %s in %s', consumerUri.id, systemId);
380
385
  return operatorManager_1.operatorManager.ensureResource(systemId, consumerUri.fullName, consumerUri.version);
381
386
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.33.3",
3
+ "version": "0.33.4",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -114,7 +114,7 @@ class FilesystemManager {
114
114
  }
115
115
 
116
116
  getShowPixelGrid() {
117
- return storageService.get<boolean>('app', SHOW_PIXEL_GRID, false);
117
+ return storageService.get<boolean>('app', SHOW_PIXEL_GRID, true);
118
118
  }
119
119
 
120
120
  setShowPixelGrid(show: boolean) {
@@ -480,7 +480,11 @@ export class InstanceManager {
480
480
  // Not an operator
481
481
  return Promise.resolve();
482
482
  }
483
-
483
+ // Check if the operator has a local definition, if not we skip it since we can't start it
484
+ if(!asset.definition.spec.local) {
485
+ console.log('Skipping operator since it as no local definition: %s', consumer.kind)
486
+ return Promise.resolve();
487
+ }
484
488
  console.log('Ensuring resource: %s in %s', consumerUri.id, systemId);
485
489
  return operatorManager.ensureResource(systemId, consumerUri.fullName, consumerUri.version);
486
490
  });