Skip to content

Commit 8c65135

Browse files
authored
Allow configuring env vars for CWAgent CR (#232)
1 parent dde44f0 commit 8c65135

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

charts/amazon-cloudwatch-observability/templates/linux/cloudwatch-agent-custom-resource.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ spec:
259259
{{ end }}
260260
- name: K8S_CLUSTER_NAME
261261
value: {{ $.Values.clusterName | quote }}
262+
{{- with $agent.env }}
263+
{{- . | toYaml | nindent 2 }}
264+
{{- end }}
262265
{{- dict "component" $agent "context" $ | include "amazon-cloudwatch-observability.common.tolerations" | nindent 2 }}
263266
---
264267
{{- end }}

charts/amazon-cloudwatch-observability/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,7 @@ agent:
12541254
us-gov-east-1: 743662458514.dkr.ecr.us-gov-east-1.amazonaws.com
12551255
us-gov-west-1: 743662458514.dkr.ecr.us-gov-west-1.amazonaws.com
12561256
enabled: true
1257+
env: []
12571258
priorityClassName: system-node-critical
12581259
affinity:
12591260
nodeAffinity:

0 commit comments

Comments
 (0)