Skip to content

Commit

Permalink
Helm: fix issue with config.clients (grafana#1431)
Browse files Browse the repository at this point in the history
* Add statement for config.clients

* Bump up chart version

* Update production/helm/promtail/templates/daemonset.yaml

Yeap, make sense.

Co-Authored-By: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>

Co-authored-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
  • Loading branch information
2 people authored and cyriltovena committed Jan 9, 2020
1 parent 3b7fbb3 commit 88d0519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion production/helm/promtail/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v1"
name: promtail
version: 0.16.0
version: 0.16.1
appVersion: v1.2.0
kubeVersion: "^1.10.0-0"
description: "Responsible for gathering logs and sending them to Loki"
Expand Down
3 changes: 2 additions & 1 deletion production/helm/promtail/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- "-config.file=/etc/promtail/promtail.yaml"
{{- if not (or .Values.config.client.url .Values.config.clients) }}
{{- if and .Values.loki.user .Values.loki.password }}
- "-client.url={{ .Values.loki.serviceScheme }}://{{ .Values.loki.user }}:{{ .Values.loki.password }}@{{ include "loki.serviceName" . }}:{{ .Values.loki.servicePort }}/loki/api/v1/push"
{{- else }}
- "-client.url={{ .Values.loki.serviceScheme }}://{{ include "loki.serviceName" . }}:{{ .Values.loki.servicePort }}/loki/api/v1/push"
{{- end }}
{{- end }}
volumeMounts:
- name: config
mountPath: /etc/promtail
Expand Down Expand Up @@ -93,4 +95,3 @@ spec:
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}

0 comments on commit 88d0519

Please sign in to comment.