Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 7d9426b

Browse files
committed
Use correct Helm chart version in hook images
1 parent a281f12 commit 7d9426b

File tree

15 files changed

+25
-67
lines changed

15 files changed

+25
-67
lines changed

hooks/declarative-subsequent-scans/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ description: Starts possible subsequent security scans based on findings (e.g. o
55
type: application
66

77
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
8-
version: 0.1.0
8+
version: latest
99

1010
dependencies: []

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,5 @@ metadata:
44
name: {{ include "declarative-subsequent-scans.fullname" . }}
55
spec:
66
type: ReadOnly
7-
{{- if .Values.image.registry }}
8-
{{- if .Values.image.digest }}
9-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}@{{ .Values.image.digest }}"
10-
{{- else }}
11-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
12-
{{- end }}
13-
{{- else }}
14-
{{- if .Values.image.digest }}
15-
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
16-
{{- else }}
17-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
18-
{{- end }}
19-
{{- end }}
7+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
208
serviceAccountName: declarative-combined-scans

hooks/declarative-subsequent-scans/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Declare variables to be passed into your templates.
44

55
image:
6-
registry: docker.io
7-
repository: scbexperimental/hook-declarative-subsequent-scans
8-
tag: latest
9-
digest: null
6+
repository: docker.io/scbexperimental/hook-declarative-subsequent-scans
7+
# image.tag - defaults to the charts version
8+
tag: null

hooks/generic-webhook/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ description: Lets you send http webhooks after scans are completed
55
type: application
66

77
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
8-
version: 0.1.0
8+
version: latest
99

1010
dependencies: []

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ metadata:
44
name: {{ include "generic-webhook.fullname" . }}
55
spec:
66
type: ReadOnly
7-
{{- if .Values.image.digest }}
8-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}@{{ .Values.image.digest }}"
9-
{{- else }}
10-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
11-
{{- end }}
7+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
128
env:
139
- name: WEBHOOK_URL
1410
value: {{ .Values.webhookUrl | quote }}

hooks/generic-webhook/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
webhookUrl: "http://example.com"
66

77
image:
8-
registry: docker.io
9-
repository: scbexperimental/generic-webhook
10-
tag: latest
11-
digest: null
8+
repository: docker.io/scbexperimental/generic-webhook
9+
# image.tag - defaults to the charts version
10+
tag: null

hooks/imperative-subsequent-scans/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ description: Starts possible subsequent security scans based on findings (e.g. o
55
type: application
66

77
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
8-
version: 0.1.0
8+
version: latest
99

1010
dependencies: []

hooks/imperative-subsequent-scans/templates/imperative-subsequent-scans-hook.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@ metadata:
44
name: {{ .Release.Name }}
55
spec:
66
type: ReadOnly
7-
{{- if .Values.image.registry }}
8-
{{- if .Values.image.digest }}
9-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}@{{ .Values.image.digest }}"
10-
{{- else }}
11-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
12-
{{- end }}
13-
{{- else }}
14-
{{- if .Values.image.digest }}
15-
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
16-
{{- else }}
17-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
18-
{{- end }}
19-
{{- end }}
7+
image: "{{ .Values.parserImage.repository }}:{{ .Values.parserImage.tag | default .Chart.Version }}"
208
serviceAccountName: imperative-combined-scans
219
env:
2210
- name: CASCADE_AMASS_NMAP

hooks/imperative-subsequent-scans/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ cascade:
1717
nmapZapBaseline: false
1818

1919
image:
20-
registry: docker.io
21-
repository: scbexperimental/hook-imperative-subsequent-scans
22-
tag: latest
23-
digest: null
20+
repository: docker.io/scbexperimental/hook-imperative-subsequent-scans
21+
# image.tag - defaults to the charts version
22+
tag: null

hooks/persistence-elastic/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: The elastic persistence provider persists secureCodeBox findings in
55
type: application
66

77
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
8-
version: 0.1.0
8+
version: latest
99

1010
appVersion: 7.6.1
1111

0 commit comments

Comments
 (0)