mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
Add imagePullSecrets to helm Chart (#789)
* Add imagePullSecrets to helm Chart Fixes #787 Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud> * use only one imagePullSecret Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud> * Bugfix Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: trivy
|
||||
version: 0.3.0
|
||||
version: 0.4.0
|
||||
appVersion: "0.15.0"
|
||||
description: Trivy helm chart
|
||||
keywords:
|
||||
|
||||
@@ -51,6 +51,7 @@ The following table lists the configurable parameters of the Trivy chart and the
|
||||
| `image.repository` | Image name | `aquasec/trivy` |
|
||||
| `image.tag` | Image tag | `{TAG_NAME}` |
|
||||
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
||||
| `image.pullSecret` | The name of an imagePullSecret used to pull trivy image from e.g. Docker Hub or a private registry | |
|
||||
| `replicaCount` | Number of Trivy Pods to run | `1` |
|
||||
| `trivy.debugMode` | The flag to enable or disable Trivy debug mode | `false` |
|
||||
| `trivy.gitHubToken` | The GitHub access token to download Trivy DB | |
|
||||
|
||||
@@ -36,6 +36,10 @@ spec:
|
||||
securityContext:
|
||||
{{ toYaml .Values.podSecurityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.image.pullSecret }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.image.pullSecret }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: main
|
||||
image: {{ template "trivy.imageRef" . }}
|
||||
|
||||
@@ -6,6 +6,7 @@ image:
|
||||
repository: aquasec/trivy
|
||||
tag: 0.15.0
|
||||
pullPolicy: IfNotPresent
|
||||
pullSecret: ""
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user