Skip to content

Commit

Permalink
BUGFIX: version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
n3op2 committed May 17, 2022
1 parent 52a0cb9 commit fc4a7bb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/ipfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function setupIpfs() {
return that
}

async function ipfsHealthCheack(api, name = 'ipfs') {
async function ipfsHealthCheack(api = {}, name = 'ipfs') {
try {
if (!api.ipfs || !api.ipfs.pid) throw new ConnectionError({ name })
const { spawnfile, pid, killed } = api.ipfs
Expand Down
1 change: 1 addition & 0 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const pinoHttp = require('pino-http')
const { PORT } = require('./env')
const logger = require('./logger')
const { setupKeyWatcher, nodeHealthCheck } = require('./keyWatcher')
const { ipfsHealthCheack } = require('./ipfs')
const { setupIpfs } = require('./ipfs')
const ServiceWatcher = require('./utils/ServiceWatcher')

Expand Down
4 changes: 2 additions & 2 deletions helm/dscp-ipfs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: dscp-ipfs
appVersion: '2.1.1'
appVersion: '2.1.2'
description: A Helm chart for dscp-ipfs
version: '2.1.1'
version: '2.1.2'
type: application
dependencies:
- name: dscp-node
Expand Down
2 changes: 1 addition & 1 deletion helm/dscp-ipfs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ config:
image:
repository: ghcr.io/digicatapult/dscp-ipfs
pullPolicy: IfNotPresent
tag: 'v2.1.1'
tag: 'v2.1.2'

storage:
storageClass: ""
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digicatapult/dscp-ipfs",
"version": "2.1.1",
"version": "2.1.2",
"description": "Service for WASP",
"main": "app/index.js",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions test/__fixtures__/ipfs-api-fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ const { ipfsHealthCheack } = require('../../app/ipfs');

module.exports = {
available: {
pid: 10,
spawnfile: '/path/to/file/test/spawn.key',
killed: false,
ipfs: {
pid: 10,
spawnfile: '/path/to/file/test/spawn.key',
killed: false,
},
healthCheck: ipfsHealthCheack,
}
}

0 comments on commit fc4a7bb

Please sign in to comment.