Skip to content

Commit

Permalink
support config env variables in deepflow-agent container
Browse files Browse the repository at this point in the history
  • Loading branch information
zth9 authored and Nick-0314 committed Jun 13, 2024
1 parent 1140a26 commit 1dbdf64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/deepflow-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ spec:
{{- else }}
fieldPath: status.podIP
{{- end }}
{{- range .Values.env}}
- name: {{ .name }}
value: {{ .value }}
{{- end}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
4 changes: 4 additions & 0 deletions charts/deepflow-agent/templates/watcher-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ spec:
env:
- name: ONLY_WATCH_K8S_RESOURCE
value: "true"
{{- range .Values.env}}
- name: {{ .name }}
value: {{ .value }}
{{- end}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
2 changes: 2 additions & 0 deletions charts/deepflow-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: v6.5.4

env: []

imagePullSecrets: []
nameOverride: ""
agentFullnameOverride: "deepflow-agent"
Expand Down

0 comments on commit 1dbdf64

Please sign in to comment.