Skip to content

Commit

Permalink
Remove the need for AWS access key secret if using IRSA (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrichardson-akasa authored Mar 8, 2024
1 parent 3f01127 commit 3a1c51e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions stable/insights-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## 3.1.4
* Fix support for IRSA in cloud-costs

## 3.1.3
* Increase default memory for trivy
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: 3.1.3
version: 3.1.4
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: 2 additions & 2 deletions stable/insights-agent/templates/cloud-costs/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ spec:
emptyDir: {}
{{- end }}
containers:
{{- if .Values.cloudcosts.secretName }}
- {{ include "container-spec" . | indent 12 | trim }}
{{- if eq .Values.cloudcosts.provider "aws" }}
{{- if .Values.cloudcosts.secretName }}
- name: creds
mountPath: /.aws
env:
Expand All @@ -38,6 +38,7 @@ spec:
secretKeyRef:
name: {{ .Values.cloudcosts.secretName }}
key: AWS_SECRET_ACCESS_KEY
{{- end }}
- name: AWS_DEFAULT_REGION
value: {{ required "You must set cloudcosts.aws.region, please see https://insights.docs.fairwinds.com/technical-details/reports/aws-costs/#agent-configuration" .Values.cloudcosts.aws.region }}
{{ include "proxy-env-spec" . | indent 12 | trim }}
Expand Down Expand Up @@ -87,5 +88,4 @@ spec:
{{ include "security-context" . | indent 12 | trim }}
{{ include "uploaderContainer" . | indent 10 | trim }}
{{- end }}
{{- end }}
{{- end -}}

0 comments on commit 3a1c51e

Please sign in to comment.