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

Commit ab95c63

Browse files
committed
Default to Chart Version for image tags
1 parent 37448b7 commit ab95c63

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scanners/ncrack/templates/ncrack-scan-type.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
restartPolicy: OnFailure
1818
containers:
1919
- name: ncrack
20-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default 0.7 }}"
20+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2121
command: ["ncrack", "-oX", "/home/securecodebox/ncrack-results.xml"]
2222
resources:
2323
{{- toYaml .Values.scannerJob.resources | nindent 16 }}

scanners/ncrack/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parserImage:
55

66
image:
77
repository: docker.io/securecodebox/scanner-ncrack
8-
# image.tag - defaults to ncrack version 0.7
8+
# image.tag - defaults to the charts version
99
tag: null
1010

1111
scannerJob:

scanners/nmap/templates/nmap-scan-type.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
restartPolicy: OnFailure
1818
containers:
1919
- name: nmap
20-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default 7.80 }}"
20+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2121
command: ["nmap", "-oX", "/home/securecodebox/nmap-results.xml"]
2222
resources:
2323
{{- toYaml .Values.scannerJob.resources | nindent 16 }}

scanners/nmap/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parserImage:
55

66
image:
77
repository: docker.io/securecodebox/scanner-nmap
8-
# image.tag - defaults to nmap version 7.80
8+
# image.tag - defaults to the charts version
99
tag: null
1010
scannerJob:
1111
ttlSecondsAfterFinished: null

0 commit comments

Comments
 (0)