Kong / Kong/kubernetes-testing-framework

Delete temp files and directories in `install.sh` via `trap`

Open
#531 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
44
Forks
11
PR merge metrics
No merged PRs in 30d

Description

can we delete the tempdir when done with it? maybe something along the lines of `trap rm -rv "$TEMPDIR" EXIT` ?

_Originally posted by @mflendrich in https://github.com/Kong/kubernetes-testing-framework/pull/516#discussion_r1094824680_

Contributor guide

Open the contributing guide

Research direction

Open install.sh and trace where TEMPDIR is created and used. Implement cleanup on script exit with the proposed trap, then verify that the temporary directory is removed after normal and failing exits.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.