@kapeta/local-cluster-service 0.33.8 → 0.33.10

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,17 @@
1
+ ## [0.33.10](https://github.com/kapetacom/local-cluster-service/compare/v0.33.9...v0.33.10) (2024-01-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * dont use underscores in fullName ([536498c](https://github.com/kapetacom/local-cluster-service/commit/536498c50a525538034c60506216fda90e6dfca4))
7
+
8
+ ## [0.33.9](https://github.com/kapetacom/local-cluster-service/compare/v0.33.8...v0.33.9) (2024-01-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add options.fullName to local resource info ([#119](https://github.com/kapetacom/local-cluster-service/issues/119)) ([eaab5f3](https://github.com/kapetacom/local-cluster-service/commit/eaab5f37e96893d094ff7a8db8b979e7f0a903fa))
14
+
1
15
  ## [0.33.8](https://github.com/kapetacom/local-cluster-service/compare/v0.33.7...v0.33.8) (2024-01-09)
2
16
 
3
17
 
@@ -102,12 +102,15 @@ class OperatorManager {
102
102
  throw new Error('Unknown resource port type : ' + resourceType + '#' + portType);
103
103
  }
104
104
  const dbName = name + '_' + fromServiceId.replace(/[^a-z0-9]/gi, '');
105
+ const safeName = dbName.replace('_', '-');
105
106
  return {
106
107
  host: environment === 'docker' ? 'host.docker.internal' : '127.0.0.1',
107
108
  port: portInfo.hostPort,
108
109
  type: portType,
109
110
  protocol: portInfo.protocol,
110
111
  options: {
112
+ // expose as fullName since that is not operator specific, but unique
113
+ fullName: safeName,
111
114
  dbName,
112
115
  },
113
116
  credentials,
@@ -102,12 +102,15 @@ class OperatorManager {
102
102
  throw new Error('Unknown resource port type : ' + resourceType + '#' + portType);
103
103
  }
104
104
  const dbName = name + '_' + fromServiceId.replace(/[^a-z0-9]/gi, '');
105
+ const safeName = dbName.replace('_', '-');
105
106
  return {
106
107
  host: environment === 'docker' ? 'host.docker.internal' : '127.0.0.1',
107
108
  port: portInfo.hostPort,
108
109
  type: portType,
109
110
  protocol: portInfo.protocol,
110
111
  options: {
112
+ // expose as fullName since that is not operator specific, but unique
113
+ fullName: safeName,
111
114
  dbName,
112
115
  },
113
116
  credentials,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.33.8",
3
+ "version": "0.33.10",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -145,6 +145,7 @@ class OperatorManager {
145
145
  }
146
146
 
147
147
  const dbName = name + '_' + fromServiceId.replace(/[^a-z0-9]/gi, '');
148
+ const safeName = dbName.replace('_', '-');
148
149
 
149
150
  return {
150
151
  host: environment === 'docker' ? 'host.docker.internal' : '127.0.0.1',
@@ -152,6 +153,8 @@ class OperatorManager {
152
153
  type: portType,
153
154
  protocol: portInfo.protocol,
154
155
  options: {
156
+ // expose as fullName since that is not operator specific, but unique
157
+ fullName: safeName,
155
158
  dbName,
156
159
  },
157
160
  credentials,