From 820e4755a54ecab3b5d800017bf6948dc9212825 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Wed, 20 Sep 2023 12:43:18 +0100 Subject: [PATCH] feat: added create namespace on deploy (#673) Signed-off-by: Alex Jones Co-authored-by: Aris Boutselis --- pkg/integration/trivy/trivy.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/integration/trivy/trivy.go b/pkg/integration/trivy/trivy.go index 3679cb3c37..1e5f0783c4 100644 --- a/pkg/integration/trivy/trivy.go +++ b/pkg/integration/trivy/trivy.go @@ -77,9 +77,12 @@ func (t *Trivy) Deploy(namespace string) error { ReleaseName: ReleaseName, ChartName: fmt.Sprintf("%s/%s", RepoShortName, ChartName), Namespace: namespace, - UpgradeCRDs: true, - Wait: false, - Timeout: 300, + + //TODO: All of this should be configurable + UpgradeCRDs: true, + Wait: false, + Timeout: 300, + CreateNamespace: true, } // Install a chart release.