trivy-operator icon indicating copy to clipboard operation
trivy-operator copied to clipboard

Add variable for `automountServiceAccountToken`

Open ichasco-heytrade opened this issue 2 years ago • 5 comments

Hi, I would like to variabilize the automountServiceAccountToken field. It's needed if someone want to use a tool like vault-secret-webhook to retrieve the secrets. In the operator and in the jobs.

Thanks!

ichasco-heytrade avatar Jul 28 '22 06:07 ichasco-heytrade

@ichasco-heytrade you can pick up this issue if you like :)

chen-keinan avatar Aug 24 '22 06:08 chen-keinan

This has to be changed in the jobs. But I don't know how to do it. If it had been be in the HELM templates I would have done myself

ichasco-heytrade avatar Aug 24 '22 08:08 ichasco-heytrade

This has to be changed in the jobs. But I don't know how to do it. If it had been be in the HELM templates I would have done myself

Give it a try , here is a reference where we set the automountServiceAccountToken , you just need to make it configurable and expose it in helm chart. take a look at this example how to make it configurable

chen-keinan avatar Aug 24 '22 15:08 chen-keinan

Hi, @chen-keinan I have tried but have not succeeded :(

ichasco-heytrade avatar Aug 26 '22 10:08 ichasco-heytrade

@ichasco-heytrade no worries , we will pick it up and you could review it

chen-keinan avatar Aug 26 '22 11:08 chen-keinan