Skip to content

Commit

Permalink
[src] add support for user configured env variables for the exporter …
Browse files Browse the repository at this point in the history
…container
  • Loading branch information
TalShafir committed Sep 13, 2023
1 parent 3bde2f5 commit 93c5b58
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/ocean-metric-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: ocean-metric-exporter
description: A Helm chart for Ocean Metric Exporter
type: application
version: 1.0.4
version: 1.0.5
appVersion: 1.0.3
home: https://github.com/spotinst/charts/tree/main/charts/ocean-metric-exporter
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
3 changes: 2 additions & 1 deletion charts/ocean-metric-exporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ocean-metric-exporter

![Version: 1.0.4](https://img.shields.io/badge/Version-1.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.3](https://img.shields.io/badge/AppVersion-1.0.3-informational?style=flat-square)
![Version: 1.0.5](https://img.shields.io/badge/Version-1.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.3](https://img.shields.io/badge/AppVersion-1.0.3-informational?style=flat-square)

A Helm chart for Ocean Metric Exporter.

Expand Down Expand Up @@ -47,6 +47,7 @@ helm install my-release spot/ocean-metric-exporter
| oceanController.namespace | Optional | `"kube-system"` | Namespace where components should be installed. |
| oceanController.secretName | Optional | `"spotinst-kubernetes-cluster-controller"` | Secret name. |
| podAnnotations | Optional | `{}` | Pod annotations. Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ |
| podEnvVariables | Optional | `[]` | Additional environment variables for the exporter container. |
| replicaCount | Optional | `1` | Replicas. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#replicas |
| resources | Optional | `{"limits":{"cpu":"500m","memory":"500Mi"},"requests":{"cpu":"100m","memory":"50Mi"}}` | Resource requests and limits. Ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| service.create | Optional | `true` | Controls whether a service should be created. |
Expand Down
3 changes: 3 additions & 0 deletions charts/ocean-metric-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ spec:
name: {{ include "ocean-metric-exporter.caBundleSecretName" . }}
key: userEnvCertificates.pem
optional: true
{{- with .Values.podEnvVariables }}
{{- toYaml . | nindent 8 }}
{{- end }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ include "ocean-metric-exporter.command" . }}
Expand Down
5 changes: 5 additions & 0 deletions charts/ocean-metric-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ image:
# Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}

# -- (Optional) Additional environment variables for the exporter container.
podEnvVariables: []
#- name: envName

Check failure on line 33 in charts/ocean-metric-exporter/values.yaml

View workflow job for this annotation

GitHub Actions / lint

[comments] missing starting space in comment
# value: envValue

# -- (Optional) Resource requests and limits.
# Ref: http://kubernetes.io/docs/user-guide/compute-resources/
resources:
Expand Down

0 comments on commit 93c5b58

Please sign in to comment.