Skip to content

Commit

Permalink
add global env
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Jul 31, 2020
1 parent 918608b commit 1796e69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: v2
name: microservice
version: 0.2.2
appVersion: 0.2.2
version: 0.2.3
appVersion: 0.2.3
description: A Helm chart which provide a DRY microservice deployment mechanism
keywords:
- microservice
Expand Down
4 changes: 2 additions & 2 deletions templates/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ spec:
{{- end }}
{{- end }}
env:
{{- range .Values.environment }}
- name: {{ .name }}
{{- range concat (.Values.global.environment) (.Values.environment | default list)}}
- name: {{ .name | quote}}
value: {{ .value | quote }}
{{- end }}
resources:
Expand Down
4 changes: 3 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1
global:
replicaCount: 1
environment: []

image:
repository: "crccheck/hello-world"
Expand Down

0 comments on commit 1796e69

Please sign in to comment.