Skip to content

Commit

Permalink
Upgrade gardener dashboard to Node.js v22.7 (gardener#2063)
Browse files Browse the repository at this point in the history
* Upgrade nodejs to version `^22.7.0`

* adjust coverage to new version
  • Loading branch information
holgerkoser authored Sep 4, 2024
1 parent dfedcb8 commit 45b4eb7
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dashboard:
pull-request: ~
steps:
check:
image: 'node:20-alpine3.20'
image: 'node:22-alpine3.20'
release:
traits:
version:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

############# builder #############
FROM node:20-alpine3.20 AS builder
FROM node:22-alpine3.20 AS builder

WORKDIR /volume

Expand Down
4 changes: 2 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"coverageThreshold": {
"global": {
"branches": 68,
"functions": 95,
"functions": 94,
"lines": 90,
"statements": 90
}
Expand All @@ -155,6 +155,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
9 changes: 3 additions & 6 deletions backend/test/docker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ const { DockerfileParser } = require('dockerfile-ast')

/* Nodejs release schedule (see https://nodejs.org/en/about/releases/) */
const activeNodeReleases = {
18: {
endOfLife: new Date('2025-04-30T23:59:59Z')
},
19: {
endOfLife: new Date('2023-06-01T23:59:59Z')
},
20: {
endOfLife: new Date('2026-04-30T23:59:59Z')
},
22: {
endOfLife: new Date('2027-04-30T23:59:59Z')
}
}

Expand Down
2 changes: 1 addition & 1 deletion charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/kube-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/kube-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^20.9.0"
"node": "^22.7.0"
}
}
4 changes: 2 additions & 2 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ module.exports = {
enforceWorkspaceDependencies(ctx)
enforceFieldsOnAllWorkspaces(ctx, {
license: 'Apache-2.0',
'engines.node': '^20.9.0',
'packageManager': 'yarn@4.3.1',
'engines.node': '^22.7.0',
'packageManager': 'yarn@4.4.1',
'repository.type': 'git',
'repository.url': 'git+https://github.com/gardener/dashboard.git',
'repository.directory': workspace => workspace.cwd,
Expand Down

0 comments on commit 45b4eb7

Please sign in to comment.