Skip to content

Commit e2033b2

Browse files
authored
0.1.2 release (#22)
* 0.1.2 release * trace the error and show a user readable message
1 parent eb47baa commit e2033b2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hooks",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Three projects are included - k8s: a kubernetes hook implementation that spins up pods dynamically to run a job - docker: A hook implementation of the runner's docker implementation - A hook lib, which contains shared typescript definitions and utilities that the other packages consume",
55
"main": "",
66
"directories": {

packages/k8s/src/k8s/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as core from '@actions/core'
12
import * as k8s from '@kubernetes/client-node'
23
import { ContainerInfo, Registry } from 'hooklib'
34
import * as stream from 'stream'
@@ -200,12 +201,13 @@ export async function execPodStep(
200201
if (resp.status === 'Success') {
201202
resolve(resp.code)
202203
} else {
203-
reject(
204+
core.debug(
204205
JSON.stringify({
205206
message: resp?.message,
206207
details: resp?.details
207208
})
208209
)
210+
reject(resp?.message)
209211
}
210212
}
211213
)

releaseNotes.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## Features
2-
- Loosened the restriction on `ACTIONS_RUNNER_CLAIM_NAME` to be optional, not required for k8s hooks
32

43
## Bugs
5-
4+
- Improved error handling so that more actionable error messages are displayed for k8s hooks failures [#19]
65

76
## Misc

0 commit comments

Comments
 (0)