fortify / helm3-charts

Fortify Helm Charts to automate deployment of Software Security Center (SSC), ScanCentral SAST and ScanCentral DAST to a Kubernetes
MIT License
11 stars 10 forks source link

Helm Chart with 2 different versions of the Sensors #5

Closed tarrinho closed 1 year ago

tarrinho commented 1 year ago

Hello,

is there a way to have a helm chart with 2 versions of the Sensors?

The problem is that there are too many people using version 22.1 to change to 22.2 in one day, so the idea is to have at the same time 2 versions of the Sensors.

Is it possible?

Thanks, Tarrinho

fbordallo commented 1 year ago

Hi,

assuming this issue is related to Scancentral SAST chart, yes, it is posible to add 2 types of sensors using the values file. Check the comments at the workers: section (https://github.com/fortify/helm3-charts/blob/e7931adfb658f5516aeead0ff0cd2a989107db0b/charts/scancentral-sast/values.yaml#L135). You need to copy the contents of the worker type you want use (linux or windows) and use the docker image tag for the previous version at the image: section. Something like this:

 image:
      repository: fortifydocker/scancentral-sast-sensor
      pullPolicy: IfNotPresent
      # Overrides the image tag whose default is the chart appVersion.
      tag: "22.1"

Remember to give a unique key to the worker type (it can't be linux or windows).

tarrinho commented 1 year ago

Thanks, we managed to have it working with 2 different sensors (22.1 and 22.2)

By the way, don't give names to your workers with dots - "." ... it won't work ! 💪