opendevstack/ods-jenkins-shared-library

Aqua scanner and Helm deployment conflict

BraisVQ opened this issue · 0 comments

Describe the bug
Aqua scanner and deployment of Helm charts have a conflict where the Helm plugins are not available after Aqua scanner have been executed

To Reproduce
Steps to reproduce the behavior:

  1. Configure your project to use Aqua
  2. Deploy a component with Helm charts (If the helm chart did not exists before the issue does not happen)
  3. See error

Expected behavior
Both Aqua scanner and deployment with Helm should be able to be executed on the same pipeline.

Screenshots
image

Affected version:

  • OpenShift: 4.12
  • OpenDevStack 4.3

Log Output

+ HELM_DIFF_IGNORE_UNKNOWN_FLAGS=true

+ helm -n edpst-dev secrets diff upgrade --install --atomic -f values.yaml --set registry=image-registry.openshift-image-registry.svc:5000 --set componentId=sql-helm --set imageNamespace=edpst-dev --set imageTag=5f982775 --no-color --three-way-merge --normalize-manifests sql-helm ./

Error: unknown command "secrets" for "helm"

Run 'helm --help' for usage.

Additional context
Modifying where Aqua is executed seems to fix the issue, but there is no other folder with write permision (needed for Aqua to run) other than /home and /home/jenkins, which makes the error arise