feat(helm): Add support for server token (#1734)

This commit is contained in:
Eric Bailey
2022-03-03 06:38:20 -06:00
committed by GitHub
parent eebf9c8f58
commit aab6f0bf20
5 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@@ -4,7 +4,7 @@
*.dll
*.so
*.dylib
trivy
/trivy
## chart release
.cr-release-packages

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: trivy
version: 0.4.11
version: 0.4.12
appVersion: 0.24.0
description: Trivy helm chart
keywords:

View File

@@ -71,6 +71,7 @@ The following table lists the configurable parameters of the Trivy chart and the
| `trivy.skipUpdate` | The flag to enable or disable Trivy DB downloads from GitHub | `false` |
| `trivy.cache.redis.enabled` | Enable Redis as caching backend | `false` |
| `trivy.cache.redis.url` | Specify redis connection url, e.g. redis://redis.redis.svc:6379 | `` |
| `trivy.serverToken` | The token to authenticate Trivy client with Trivy server | `` |
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.port` | Kubernetes service port | `4954` |
| `httpProxy` | The URL of the HTTP proxy server | |

View File

@@ -7,6 +7,7 @@ metadata:
type: Opaque
data:
GITHUB_TOKEN: {{ .Values.trivy.gitHubToken | default "" | b64enc | quote }}
TRIVY_TOKEN: {{ .Values.trivy.serverToken | default "" | b64enc | quote }}
{{- if not .Values.trivy.registryCredentialsExistingSecret }}
TRIVY_USERNAME: {{ .Values.trivy.registryUsername | default "" | b64enc | quote }}
TRIVY_PASSWORD: {{ .Values.trivy.registryPassword | default "" | b64enc | quote }}

View File

@@ -111,6 +111,8 @@ trivy:
# eks.amazonaws.com/role-arn: arn:aws:iam::ACCOUNT_ID:role/IAM_ROLE_NAME
# If you want to add custom labels to your statefulset and podTemplate
labels: {}
# serverToken is the token to authenticate Trivy client with Trivy server.
serverToken: ""
service:
# type Kubernetes service type