Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Allow environment variables to be passed into cloudwatch-adapter pod #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/k8s-cloudwatch-adapter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: k8s-cloudwatch-adapter
description: Helm chart for Kubernetes metrics adapter for Amazon CloudWatch
type: application
version: 0.2.1
version: 0.2.2
appVersion: 0.10.0
5 changes: 5 additions & 0 deletions charts/k8s-cloudwatch-adapter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ spec:
{{- range $key, $val := .Values.args }}
- --{{ $key }}={{ $val }}
{{- end }}
env:
{{- range $map := .Values.env }}
- name: {{ $map.name }}
value: {{ $map.value }}
{{- end }}
ports:
- containerPort: 6443
name: https
Expand Down
5 changes: 5 additions & 0 deletions charts/k8s-cloudwatch-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ args:
logtostderr: true
v: 2

## Pod environment variables
env:
# e.g. - name: AWS_REGION
# e.g. value: eu-west-1

replicaCount: 1

## Labels to be added to the adapter Deployment
Expand Down