Skip to content

Commit

Permalink
chore(node): add env and envFrom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Sep 9, 2024
1 parent e7c5695 commit 16e447a
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.4
version: 0.5.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 8 additions & 0 deletions charts/node/templates/agent/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ spec:
{{- with .Values.agent.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with concat .Values.global.env .Values.agent.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with concat .Values.global.envFrom .Values.agent.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
8 changes: 8 additions & 0 deletions charts/node/templates/broadcaster/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ spec:
{{- with .Values.broadcaster.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with concat .Values.global.env .Values.broadcaster.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with concat .Values.global.envFrom .Values.broadcaster.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
8 changes: 8 additions & 0 deletions charts/node/templates/core/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ spec:
{{- with .Values.core.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with concat .Values.global.env .Values.core.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with concat .Values.global.envFrom .Values.core.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
8 changes: 8 additions & 0 deletions charts/node/templates/worker/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ spec:
{{- end }}
resources:
{{- toYaml ($worker.resources | default $.Values.global.workerResources ) | nindent 12 }}
{{- with .Values.global.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.broadcaster.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
15 changes: 15 additions & 0 deletions charts/node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ global:
cpu: 50m
memory: 64Mi

# -- Default [env] variables for all components
env: []

# -- Default [envFrom] variables for all components
envFrom: []

nameOverride: ""
fullnameOverride: ""

Expand All @@ -117,6 +123,9 @@ core:

imagePullSecrets: [ ]

env: [ ]
envFrom: [ ]

# -- Annotations to be added to server Deployment
deploymentAnnotations: { }

Expand Down Expand Up @@ -222,6 +231,9 @@ broadcaster:

imagePullSecrets: [ ]

env: [ ]
envFrom: [ ]

# -- Annotations to be added to server Deployment
deploymentAnnotations: { }

Expand Down Expand Up @@ -286,6 +298,9 @@ agent:

imagePullSecrets: [ ]

env: [ ]
envFrom: [ ]

# -- Annotations to be added to server Deployment
deploymentAnnotations: { }

Expand Down

0 comments on commit 16e447a

Please sign in to comment.