Skip to content

Commit

Permalink
Add an option to mount extra volumes to the daemonset
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed May 25, 2021
1 parent e68cae0 commit d2b2d49
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.26.1] - 2021-05-25

### Added

- Add an option to mount extra volumes using `otelAgent.extraVolumes` and `otelAgent.extraVolumeMounts` (#151)

## [0.26.0] - 2021-05-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/splunk-otel-collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: splunk-otel-collector
version: 0.26.0
version: 0.26.1
description: Splunk OpenTelemetry Connector for Kubernetes
icon: https://github.com/signalfx/splunk-otel-collector-chart/tree/main/splunk.png
type: application
Expand Down
6 changes: 6 additions & 0 deletions helm-charts/splunk-otel-collector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ spec:
readOnly: true
mountPropagation: HostToContainer
{{- end }}
{{- if .Values.otelAgent.extraVolumeMounts }}
{{- toYaml .Values.otelAgent.extraVolumeMounts | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.logsEnabled }}
Expand Down Expand Up @@ -206,6 +209,9 @@ spec:
items:
- key: relay
path: relay.yaml
{{- if .Values.otelAgent.extraVolumes }}
{{- toYaml .Values.otelAgent.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions helm-charts/splunk-otel-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ otelAgent:
# Extra enviroment variables to be set in the OTel agent container
extraEnvs: []

# Extra volumes to be mounted to the agent daemonset.
# The volumes will be available for both OTel agent and fluentd containers.
extraVolumes: []
extraVolumeMounts: []

# OpenTelemetry Collector configuration for otel-agent daemonset can be overriden in this field.
# Default configuration defined in config/otel-agent-config.yaml
# Any additional fields will be merged into the defaults,
Expand Down

0 comments on commit d2b2d49

Please sign in to comment.