Skip to content

Commit

Permalink
Made Fluentd pod init container image variable (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
spr-mweber3 authored Aug 4, 2021
1 parent af2d076 commit 95db3db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helm-charts/splunk-otel-collector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ spec:
{{- if .Values.logsEnabled }}
initContainers:
- name: prepare-fluentd-config
image: busybox:1.33
image: {{ .Values.image.fluentd.initContainer.image }}
imagePullPolicy: {{ .Values.image.fluentd.initContainer.pullPolicy }}
command: [ "sh", "-c"]
args:
- if [ -z "${LOG_FORMAT_TYPE}" ]; then
Expand Down
6 changes: 6 additions & 0 deletions helm-charts/splunk-otel-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ image:
# The policy that specifies when the user wants the fluentd images to be pulled
pullPolicy: IfNotPresent

initContainer:
# The image of the container for fluentd init to pull
image: busybox:1.33
# The policy that specifies when the user wants the fluentd init image to be pulled
pullPolicy: IfNotPresent

otelcol:
# The registry and name of the opentelemetry collector image to pull
repository: quay.io/signalfx/splunk-otel-collector
Expand Down
1 change: 1 addition & 0 deletions rendered/manifests/agent-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
initContainers:
- name: prepare-fluentd-config
image: busybox:1.33
imagePullPolicy: IfNotPresent
command: [ "sh", "-c"]
args:
- if [ -z "${LOG_FORMAT_TYPE}" ]; then
Expand Down
1 change: 1 addition & 0 deletions rendered/manifests/logs-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
initContainers:
- name: prepare-fluentd-config
image: busybox:1.33
imagePullPolicy: IfNotPresent
command: [ "sh", "-c"]
args:
- if [ -z "${LOG_FORMAT_TYPE}" ]; then
Expand Down

0 comments on commit 95db3db

Please sign in to comment.