Skip to content

Commit

Permalink
Merge pull request #28 from budacom/adding_env_from_secret
Browse files Browse the repository at this point in the history
feat: Adding envFrom in deployment template
  • Loading branch information
martinhaus authored Jul 22, 2021
2 parents bd8ab73 + 58e76ff commit 415b734
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cloudflare-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: cloudflare-exporter
version: 0.1.2
version: 0.1.3
appVersion: 0.0.6
home: https://github.com/lablabs/cloudflare-exporter
description: A Helm chart for cloudflare exporter
Expand Down
1 change: 1 addition & 0 deletions charts/cloudflare-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The following table lists the configurable parameters of the Cloudflare-exporter
| `image.pullPolicy` | | `"Always"` |
| `image.tag` | | `"0.0.2"` |
| `env` | | `[]` |
| `secretRef` | The name of a secret with environment variables | `""` |
| `imagePullSecrets` | | `[]` |
| `nameOverride` | | `""` |
| `fullnameOverride` | | `""` |
Expand Down
5 changes: 5 additions & 0 deletions charts/cloudflare-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
env:
{{- toYaml .Values.env | nindent 12 }}
{{- if .Values.secretRef }}
envFrom:
- secretRef:
name: {{ .Values.secretRef }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/cloudflare-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ image:
# Overrides the image tag whose default is the chart appVersion.
# tag: latest
env: []
secretRef: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit 415b734

Please sign in to comment.