FairwindsOps / polaris

Validation of best practices in your Kubernetes clusters
https://www.fairwinds.com/polaris
Apache License 2.0
3.17k stars 213 forks source link

Can not use polaris audit --helm-chart inside the polaris container. #1042

Closed devopsInterviews closed 3 months ago

devopsInterviews commented 6 months ago

What happened?

Hi Im using the latest polaris container (9.0.1) and use this command inside the container:

polaris audit --helm-chart /tmp/my-chart --helm-values /tmp/my-chart/values.yaml

I got this error:

ERRO[0000] ERRO[0000] Couldn't process helm chart: exec: "helm": executable file not found in $PATH

Why it says we need helm as part of the container? should't it be part of it in order to use the tool?

What did you expect to happen?

To show the regular security check

How can we reproduce this?

Run the 9.0.1 version

Version

9.0.1

Search

Code of Conduct

Additional context

No response

sudermanjr commented 6 months ago

The container is built as minimally as possible in order to avoid external dependencies and extra size - it's essentially just the polaris binary.

The --helm-chart feature is a convenience that wraps helm template and pipes it into a polaris audit command.

If you need to run polaris against helm charts, I would recommend that you install helm and polaris in your CI process - as they are both small binaries that should be quick to install.

devopsInterviews commented 6 months ago

@sudermanjr thanks for the quick answer! So there is no official docker image that combines both? Should I build one on my own?