Skip to content

Commit

Permalink
add flexibility to specify image with tag or digest in Helm chart for…
Browse files Browse the repository at this point in the history
… grype-offline-db (#477)

Signed-off-by: yonatanamz <[email protected]>
  • Loading branch information
yonatanamz authored Aug 8, 2024
1 parent eb5d517 commit 397e2dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
{{- end }}
containers:
- name: {{ .Values.grypeOfflineDB.name }}
image: "{{ .Values.grypeOfflineDB.image.repository }}@{{ .Values.grypeOfflineDB.image.sha }}"
image: "{{ .Values.grypeOfflineDB.image.repository }}{{ if .Values.grypeOfflineDB.image.tag }}:{{ .Values.grypeOfflineDB.image.tag }}{{ else }}@{{ .Values.grypeOfflineDB.image.sha }}{{ end }}"
imagePullPolicy: {{ .Values.grypeOfflineDB.image.pullPolicy }}
securityContext:
allowPrivilegeEscalation: false
Expand Down
1 change: 1 addition & 0 deletions charts/kubescape-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ grypeOfflineDB:

image:
repository: ghcr.io/alexandreroman/grype-offline-db
tag: "" # Specify a tag to use a tagged image, which will overwrite the sha if specified
sha: sha256:155db3be4baa461a50cebadfc8f52108fca71aa4ce5e460a30a4e0922e899ed2
pullPolicy: IfNotPresent

Expand Down

0 comments on commit 397e2dc

Please sign in to comment.