Skip to content

Commit b21c5b8

Browse files
authored
Merge pull request #220 from secureCodeBox/feature/ttl-after-finished
2 parents 3762b4b + f183916 commit b21c5b8

65 files changed

Lines changed: 186 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

hooks/declarative-subsequent-scans/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,6 @@ zap-http zap-baseline non-invasive medium
118118

119119
| Key | Type | Default | Description |
120120
|-----|------|---------|-------------|
121+
| hookJob.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
121122
| image.repository | string | `"docker.io/securecodebox/hook-declarative-subsequent-scans"` | Hook image repository |
122123
| image.tag | string | `nil` | |

hooks/declarative-subsequent-scans/templates/declerative-subsequent-scans-hook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ metadata:
55
spec:
66
type: ReadOnly
77
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
8+
ttlSecondsAfterFinished: {{ .Values.hookJob.ttlSecondsAfterFinished }}
89
serviceAccountName: declarative-combined-scans

hooks/declarative-subsequent-scans/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ image:
99
# parserImage.tag -- Parser image tag
1010
# @default -- defaults to the charts version
1111
tag: null
12+
13+
hookJob:
14+
# hookJob.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
15+
ttlSecondsAfterFinished: null

hooks/generic-webhook/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ helm upgrade --install gwh secureCodeBox/generic-webhook --set webhookUrl="http:
2121

2222
| Key | Type | Default | Description |
2323
|-----|------|---------|-------------|
24+
| hookJob.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
2425
| image.repository | string | `"docker.io/securecodebox/generic-webhook"` | Hook image repository |
2526
| image.tag | string | `nil` | |
2627
| webhookUrl | string | `"http://example.com"` | The URL of your WebHook endpoint |

hooks/generic-webhook/templates/webhook-hook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
spec:
66
type: ReadOnly
77
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
8+
ttlSecondsAfterFinished: {{ .Values.hookJob.ttlSecondsAfterFinished }}
89
env:
910
- name: WEBHOOK_URL
1011
value: {{ .Values.webhookUrl | quote }}

hooks/generic-webhook/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ image:
1212
# parserImage.tag -- Parser image tag
1313
# @default -- defaults to the charts version
1414
tag: null
15+
16+
hookJob:
17+
# hookJob.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
18+
ttlSecondsAfterFinished: null

hooks/persistence-elastic/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ helm upgrade --install elkh secureCodeBox/persistence-elastic
3737
| externalElasticStack.enabled | bool | `false` | Enable this when you already have an Elastic Stack running to which you want to send your results |
3838
| externalElasticStack.kibanaAddress | string | `"https://kibana.example.com"` | The URL of the kibana service used to visualize all findings. |
3939
| fullnameOverride | string | `""` | |
40+
| hookJob.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
4041
| image.repository | string | `"docker.io/securecodebox/persistence-elastic"` | Image repository for the dashboard importer job |
4142
| image.tag | string | defaults to the charts version | Image tag for the dashboard importer job |
4243
| imagePullSecrets | list | `[]` | |

hooks/persistence-elastic/templates/persistence-provider.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
spec:
88
type: ReadOnly
99
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
10+
ttlSecondsAfterFinished: {{ .Values.hookJob.ttlSecondsAfterFinished }}
1011
env:
1112
- name: ELASTICSEARCH_INDEX_PREFIX
1213
value: {{ .Values.indexPrefix | quote }}

hooks/persistence-elastic/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ nodeSelector: {}
7777
tolerations: []
7878

7979
affinity: {}
80+
81+
hookJob:
82+
# hookJob.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
83+
ttlSecondsAfterFinished: null

hooks/update-field/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ helm upgrade --install ufh secureCodeBox/update-field --set attribute.name="cate
2424
|-----|------|---------|-------------|
2525
| attribute.name | string | `"category"` | The name of the attribute you want to add to each finding result |
2626
| attribute.value | string | `"my-own-category"` | The value of the attribute you want to add to each finding result |
27+
| hookJob.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the hook will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
2728
| image.repository | string | `"docker.io/securecodebox/update-field"` | Hook image repository |
2829
| image.tag | string | `nil` | |

0 commit comments

Comments
 (0)