Make K8s claim name optional (#18)

* make claim name optional

* update version and notes

* fix ci

* correctly invoke function
This commit is contained in:
Thomas Boop
2022-06-20 15:09:04 -04:00
committed by GitHub
parent 898063bddd
commit bb1a033ed7
6 changed files with 6 additions and 9 deletions

View File

@@ -27,9 +27,7 @@ export function getStepPodName(): string {
export function getVolumeClaimName(): string {
const name = process.env.ACTIONS_RUNNER_CLAIM_NAME
if (!name) {
throw new Error(
"'ACTIONS_RUNNER_CLAIM_NAME' is required, please contact your self hosted runner administrator"
)
return `${getRunnerPodName()}-work`
}
return name
}