Skip to content

Commit

Permalink
Do not set volume mount when Trivy persistence is disabled (#276)
Browse files Browse the repository at this point in the history
* do not set volume mount when trivy persistence is disabled

* bump chart version from 0.8.4 to 0.8.5-rc1
  • Loading branch information
matheusfm authored Apr 24, 2024
1 parent 2d0d0ec commit 9e131b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/zora/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: zora
description: A multi-plugin solution that reports misconfigurations and vulnerabilities by scanning your cluster at scheduled times.
icon: https://zora-docs.undistro.io/v0.7/assets/logo.svg
type: application
version: 0.8.4
appVersion: "v0.8.4"
version: 0.8.5-rc1
appVersion: "v0.8.5-rc1"
sources:
- https://github.com/undistro/zora
4 changes: 2 additions & 2 deletions charts/zora/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zora Helm Chart

![Version: 0.8.4](https://img.shields.io/badge/Version-0.8.4-informational?style=flat-square&color=3CA9DD) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square&color=3CA9DD) ![AppVersion: v0.8.4](https://img.shields.io/badge/AppVersion-v0.8.4-informational?style=flat-square&color=3CA9DD)
![Version: 0.8.5-rc1](https://img.shields.io/badge/Version-0.8.5--rc1-informational?style=flat-square&color=3CA9DD) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square&color=3CA9DD) ![AppVersion: v0.8.5-rc1](https://img.shields.io/badge/AppVersion-v0.8.5--rc1-informational?style=flat-square&color=3CA9DD)

A multi-plugin solution that reports misconfigurations and vulnerabilities by scanning your cluster at scheduled times.

Expand All @@ -13,7 +13,7 @@ helm repo add undistro https://charts.undistro.io --force-update
helm repo update undistro
helm upgrade --install zora undistro/zora \
-n zora-system \
--version 0.8.4 \
--version 0.8.5-rc1 \
--create-namespace \
--wait \
--set clusterName="$(kubectl config current-context)"
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (r *CronJobMutator) pluginContainer() corev1.Container {
if pointer.BoolDeref(r.Plugin.Spec.MountCustomChecksVolume, false) {
c.VolumeMounts = append(c.VolumeMounts, customChecksVolume)
}
if r.Plugin.Name == "trivy" {
if r.Plugin.Name == "trivy" && r.TrivyPVC != "" {
c.VolumeMounts = append(c.VolumeMounts, trivyDBVolumeMount)
}
return c
Expand Down

0 comments on commit 9e131b8

Please sign in to comment.