@flowfuse/driver-kubernetes 2.21.2 → 2.21.3-299c90b-202509171245.0
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.
|
@@ -13,6 +13,6 @@ jobs:
|
|
|
13
13
|
with:
|
|
14
14
|
node-version: 18
|
|
15
15
|
- run: npm ci
|
|
16
|
-
- uses: JS-DevTools/npm-publish@
|
|
16
|
+
- uses: JS-DevTools/npm-publish@d9dc932de083f0e6de6a50f0d1097a7142c3751b # v4.0.0
|
|
17
17
|
with:
|
|
18
18
|
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
package/kubernetes.js
CHANGED
|
@@ -1142,7 +1142,7 @@ module.exports = {
|
|
|
1142
1142
|
const addresses = await getEndpoints(project)
|
|
1143
1143
|
const logRequests = []
|
|
1144
1144
|
for (const address in addresses) {
|
|
1145
|
-
logRequests.push(got.get(`http://${addresses[address]}:2880/flowforge/logs`, { timeout: { request:
|
|
1145
|
+
logRequests.push(got.get(`http://${addresses[address]}:2880/flowforge/logs`, { timeout: { request: 2000 } }).json())
|
|
1146
1146
|
}
|
|
1147
1147
|
const results = await Promise.all(logRequests)
|
|
1148
1148
|
const combinedResults = results.flat(1)
|
|
@@ -1150,7 +1150,7 @@ module.exports = {
|
|
|
1150
1150
|
return combinedResults
|
|
1151
1151
|
} else {
|
|
1152
1152
|
const prefix = project.safeName.match(/^[0-9]/) ? 'srv-' : ''
|
|
1153
|
-
const result = await got.get(`http://${prefix}${project.safeName}.${this._namespace}:2880/flowforge/logs`, { timeout: { request:
|
|
1153
|
+
const result = await got.get(`http://${prefix}${project.safeName}.${this._namespace}:2880/flowforge/logs`, { timeout: { request: 2000 } }).json()
|
|
1154
1154
|
return result
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
@@ -1333,7 +1333,7 @@ module.exports = {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
} else {
|
|
1335
1335
|
const prefix = project.safeName.match(/^[0-9]/) ? 'srv-' : ''
|
|
1336
|
-
const result = await got.get(`http://${prefix}${project.safeName}.${this._namespace}:2880/flowforge/resources`, { timeout: { request:
|
|
1336
|
+
const result = await got.get(`http://${prefix}${project.safeName}.${this._namespace}:2880/flowforge/resources`, { timeout: { request: 2000 } }).json()
|
|
1337
1337
|
if (Array.isArray(result)) {
|
|
1338
1338
|
return {
|
|
1339
1339
|
meta: {},
|