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:
Christian Zunker
2021-01-05 11:41:42 +01:00
committed by GitHub
parent b9b84cd963
commit 5c5e0cb86d
4 changed files with 7 additions and 1 deletions

View File

@@ -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:

View File

@@ -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 | |

View File

@@ -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" . }}

View File

@@ -6,6 +6,7 @@ image:
repository: aquasec/trivy
tag: 0.15.0
pullPolicy: IfNotPresent
pullSecret: ""
replicaCount: 1