Skip to content

Commit

Permalink
[stable/insights-agent] Add support for SERVICE_ACCOUNT_ANNOTATIONS
Browse files Browse the repository at this point in the history
… environment variable on… (#1535)

* Add support for `SERVICE_ACCOUNT_ANNOTATIONS` environment variable on trivy

* bump patch version
  • Loading branch information
vitorvezani authored Oct 14, 2024
1 parent 3985d7f commit 2dd283b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions stable/insights-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 4.4.13
* Add support for `SERVICE_ACCOUNT_ANNOTATIONS` environment variable on trivy

## 4.4.12
* bumped nova to 3.11

Expand Down
2 changes: 1 addition & 1 deletion stable/insights-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart to run the Fairwinds Insights agent
name: insights-agent
version: 4.4.12
version: 4.4.13
appVersion: 9.2.1
kubeVersion: ">= 1.22.0-0"
icon: https://raw.githubusercontent.com/FairwindsOps/charts/master/stable/insights-agent/icon.png
Expand Down
4 changes: 4 additions & 0 deletions stable/insights-agent/templates/trivy/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ spec:
{{- end }}
- name: NAMESPACE_ALLOWLIST
value: {{ join "," .Values.trivy.namespaceAllowlist | lower }}
- name: SERVICE_ACCOUNT_ANNOTATIONS
value: >
{{- $annotations := .Values.trivy.serviceAccount.annotations }}
{{ $annotations | toJson }}
{{ include "security-context" . | indent 12 | trim }}
{{ include "uploaderContainer" . | indent 10 | trim }}
{{- end -}}

0 comments on commit 2dd283b

Please sign in to comment.