Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
feat: specify env variables for loggregator-bridge
Browse files Browse the repository at this point in the history
WIP: doing this aside with the InitContainer. The InitContainer can be dropped once
cloudfoundry-incubator/eirini-loggregator-bridge#14 is merged.
  • Loading branch information
mudler committed Apr 22, 2020
1 parent 588679a commit 2c324d5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion chart/templates/loggregator-bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.service_account.name | quote }}
initContainers:
initContainers: # TODO: Remove once https://github.com/SUSE/eirini-loggregator-bridge/pull/14 is merged
- name: generate-config
image: mookas/eirini-loggregator-bridge-setup
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand All @@ -46,6 +46,16 @@ spec:
env:
- name: EIRINI_LOGGREGATOR_BRIDGE_LOGLEVEL
value: DEBUG
- name: LOGGREGATOR_CERT_PATH
value: /run/secrets/loggregator-cert/certificate
- name: LOGGREGATOR_KEY_PATH
value: /run/secrets/loggregator-cert/private_key
- name: LOGGREGATOR_CA_PATH
value: /run/secrets/loggregator-ca/certificate
- name: NAMESPACE
value: {{ .Values.namespace }}
- name: LOGGREGATOR_ENDPOINT
value: {{ .Values.loggregator.endpoint }}
volumeMounts:
- name: config
mountPath: /run/secrets/config
Expand Down

0 comments on commit 2c324d5

Please sign in to comment.