Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Add possible configure image pull secret #383

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helm/harbor-scanner-trivy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ The following table lists the configurable parameters of the scanner adapter cha
| `image.repository` | Image name | `aquasec/harbor-scanner-trivy` |
| `image.tag` | Image tag | `{TAG_NAME}` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecret` | Image pull secret | |
| `replicaCount` | Number of scanner adapter Pods to run | `1` |
| `scanner.logLevel` | The log level of `trace`, `debug`, `info`, `warn`, `warning`, `error`, `fatal` or `panic`. The standard logger logs entries with that level or anything above it | `info` |
| `scanner.api.tlsEnabled` | The flag to enable or disable TLS for HTTP | `true` |
Expand Down
4 changes: 4 additions & 0 deletions helm/harbor-scanner-trivy/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
securityContext:
{{ toYaml .Values.podSecurityContext | indent 8 }}
{{- end }}
{{- if .Values.image.pullSecret }}
imagePullSecrets:
- name: {{ .Values.image.pullSecret }}
{{- end }}
containers:
- name: main
image: {{ template "harbor-scanner-trivy.imageRef" . }}
Expand Down
1 change: 1 addition & 0 deletions helm/harbor-scanner-trivy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ image:
repository: aquasec/harbor-scanner-trivy
tag: 0.31.0
pullPolicy: IfNotPresent
pullSecret: ""

replicaCount: 1

Expand Down