From 9e131b83074b0247d8817f7093d1dce651ac478a Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Wed, 24 Apr 2024 10:35:07 -0300 Subject: [PATCH] Do not set volume mount when Trivy persistence is disabled (#276) * do not set volume mount when trivy persistence is disabled * bump chart version from 0.8.4 to 0.8.5-rc1 --- charts/zora/Chart.yaml | 4 ++-- charts/zora/README.md | 4 ++-- pkg/plugins/cronjob.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/zora/Chart.yaml b/charts/zora/Chart.yaml index 751e7161..59daf82a 100644 --- a/charts/zora/Chart.yaml +++ b/charts/zora/Chart.yaml @@ -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 diff --git a/charts/zora/README.md b/charts/zora/README.md index b883d685..ed43c0ac 100644 --- a/charts/zora/README.md +++ b/charts/zora/README.md @@ -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. @@ -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)" diff --git a/pkg/plugins/cronjob.go b/pkg/plugins/cronjob.go index b2736e4e..e059c216 100644 --- a/pkg/plugins/cronjob.go +++ b/pkg/plugins/cronjob.go @@ -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