Skip to content

Commit 07bf29e

Browse files
authored
Merge pull request #53 from commjoen/update-cleaner
added namespace deletion
2 parents 0bd179d + 1d7e835 commit 07bf29e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

helm/wrongsecrets-ctf-party/templates/cleanup/role.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ rules:
1313
- apiGroups: [''] # "" indicates the core API group
1414
resources: ['services']
1515
verbs: ['get', 'delete']
16+
- apiGroups: [''] # "" indicates the core API group
17+
resources: ['namespaces']
18+
verbs: ['get', 'delete']
1619
{{- end }}

helm/wrongsecrets-ctf-party/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ wrongsecretsCleanup:
219219
tag: null
220220
enabled: true
221221
# -- Specifies when Juice Shop instances will be deleted when unused for that period.
222-
gracePeriod: 1d
222+
gracePeriod: 2d
223223
# -- Cron in which the clean up job is run. Defaults to once in an hour. Change this if your grace period if shorter than 1 hour
224224
cron: "0 * * * *"
225225
successfulJobsHistoryLimit: 1

0 commit comments

Comments
 (0)