Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Trivy to upstream app version v0.30.4 #57

Merged
merged 7 commits into from Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Update to upstream version `0.4.17`/app version `0.30.4`.

## [0.5.0] - 2022-09-09

### Added
Expand Down
4 changes: 2 additions & 2 deletions helm/trivy-app/Chart.yaml
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 0.29.2
appVersion: 0.30.4
annotations:
application.giantswarm.io/team: "shield"
config.giantswarm.io/version: 1.x.x
Expand All @@ -17,4 +17,4 @@ version: [[ .Version ]]

dependencies:
- name: trivy
version: 0.4.15
version: 0.4.17
4 changes: 2 additions & 2 deletions helm/trivy-app/charts/trivy/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v2
name: trivy
version: 0.4.15
appVersion: 0.27.0
version: 0.4.17
appVersion: 0.30.4
description: Trivy helm chart
keywords:
- scanner
Expand Down
3 changes: 2 additions & 1 deletion helm/trivy-app/charts/trivy/README.md
Expand Up @@ -73,6 +73,7 @@ The following table lists the configurable parameters of the Trivy chart and the
| `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 | `` |
| `trivy.existingSecret` | existingSecret if an existing secret has been created outside the chart. Overrides gitHubToken, registryUsername, registryPassword, serverToken | `` |
| `trivy.podAnnotations` | Annotations for pods created by statefulset | `{}` |
| `service.name` | If specified, the name used for the Trivy service | |
| `service.type` | Kubernetes service type | `ClusterIP` |
Expand Down Expand Up @@ -102,5 +103,5 @@ This chart uses a PersistentVolumeClaim to reduce the number of database downloa

## Caching

You can specify a Redis server as cache backend. This Redis server has to be already present. You can use the [bitname chart](https://bitnami.com/stack/redis/helm).
You can specify a Redis server as cache backend. This Redis server has to be already present. You can use the [bitnami chart](https://bitnami.com/stack/redis/helm).
More Information about the caching backends can be found [here](https://github.com/aquasecurity/trivy#specify-cache-backend).
2 changes: 2 additions & 0 deletions helm/trivy-app/charts/trivy/templates/secret.yaml
@@ -1,3 +1,4 @@
{{- if not .Values.trivy.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -12,3 +13,4 @@ data:
TRIVY_USERNAME: {{ .Values.trivy.registryUsername | default "" | b64enc | quote }}
TRIVY_PASSWORD: {{ .Values.trivy.registryPassword | default "" | b64enc | quote }}
{{- end -}}
{{- end }}
4 changes: 4 additions & 0 deletions helm/trivy-app/charts/trivy/templates/statefulset.yaml
Expand Up @@ -110,7 +110,11 @@ spec:
- configMapRef:
name: {{ include "trivy.fullname" . }}
- secretRef:
{{- if not .Values.trivy.existingSecret }}
name: {{ include "trivy.fullname" . }}
{{- else }}
name: {{ .Values.trivy.existingSecret }}
{{- end }}
ports:
- name: trivy-http
containerPort: {{ .Values.service.port }}
Expand Down
3 changes: 3 additions & 0 deletions helm/trivy-app/charts/trivy/values.yaml
Expand Up @@ -120,6 +120,9 @@ trivy:
labels: {}
# serverToken is the token to authenticate Trivy client with Trivy server.
serverToken: ""
# existingSecret if an existing secret has been created outside the chart.
# Overrides gitHubToken, registryUsername, registryPassword, serverToken
existingSecret: ""

service:
# If specified, the name used for the Trivy service.
Expand Down
3 changes: 0 additions & 3 deletions helm/trivy-app/values.schema.json
Expand Up @@ -32,9 +32,6 @@
},
"repository": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
Expand Down
1 change: 0 additions & 1 deletion helm/trivy-app/values.yaml
Expand Up @@ -10,7 +10,6 @@ trivy:
repository: giantswarm/trivy
# Tag must also be updated to match in trivy-operator-app
# If not set here, the image version is taken from the appVersion of the upstream chart.
tag: 0.29.2
service:
port:
modules:
Expand Down