Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): add fluentd init containers #1928

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- feat(helm): add fluentd init containers [#1928][#1928]
- Add support for GKE 1.21 [#1907][#1907]
- feat: add affinity to fluentd events statefulset [#1895][#1895]
- feat(helm): add PodDisruptionBudget api version helm chart helpers [#1865][#1865]
Expand Down Expand Up @@ -44,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#1865]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1865
[#1921]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1921
[#1917]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1917
[#1928]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1928

## [v2.2.0][v2_2_0] - 2021-11-17

Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/sumologic/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ spec:
{{- if .Values.fluentd.events.statefulset.priorityClassName }}
priorityClassName: {{ .Values.fluentd.events.statefulset.priorityClassName | quote }}
{{- end }}
{{- with .Values.fluentd.events.statefulset.initContainers }}
initContainers:
{{- if kindIs "string" . }}
{{- tpl . $ | nindent 8 }}
{{- else }}
{{- toYaml . | nindent 8 }}
{{- end -}}
{{- end }}
containers:
- name: fluentd-events
image: {{ .Values.fluentd.image.repository }}:{{ .Values.fluentd.image.tag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ spec:
{{- if .Values.fluentd.logs.statefulset.priorityClassName }}
priorityClassName: {{ .Values.fluentd.logs.statefulset.priorityClassName | quote }}
{{- end }}
{{- with .Values.fluentd.logs.statefulset.initContainers }}
initContainers:
{{- if kindIs "string" . }}
{{- tpl . $ | nindent 8 }}
{{- else }}
{{- toYaml . | nindent 8 }}
{{- end -}}
{{- end }}
containers:
- name: fluentd
image: {{ .Values.fluentd.image.repository }}:{{ .Values.fluentd.image.tag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ spec:
{{- if .Values.fluentd.metrics.statefulset.priorityClassName }}
priorityClassName: {{ .Values.fluentd.metrics.statefulset.priorityClassName | quote }}
{{- end }}
{{- with .Values.fluentd.metrics.statefulset.initContainers }}
initContainers:
{{- if kindIs "string" . }}
{{- tpl . $ | nindent 8 }}
{{- else }}
{{- toYaml . | nindent 8 }}
{{- end -}}
{{- end }}
containers:
- name: fluentd
image: {{ .Values.fluentd.image.repository }}:{{ .Values.fluentd.image.tag }}
Expand Down
45 changes: 45 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,21 @@ fluentd:
fluentd:
securityContext: {}

# This supports either a structured array or a templatable string
initContainers: []

# Array mode
# initContainers:
# - name: do-something
# image: bitnami/kubectl:1.22
# command: ['kubectl', 'version']

# String mode
# initContainers: |-
# - name: do-something
# image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ trimSuffix "+" .Capabilities.KubeVersion.Minor }}
# command: ['kubectl', 'version']

## Option to turn autoscaling on for fluentd and specify params for HPA.
## Autoscaling needs metrics-server to access cpu metrics.
autoscaling:
Expand Down Expand Up @@ -657,6 +672,21 @@ fluentd:
fluentd:
securityContext: {}

# This supports either a structured array or a templatable string
initContainers: []

# Array mode
# initContainers:
# - name: do-something
# image: bitnami/kubectl:1.22
# command: ['kubectl', 'version']

# String mode
# initContainers: |-
# - name: do-something
# image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ trimSuffix "+" .Capabilities.KubeVersion.Minor }}
# command: ['kubectl', 'version']

## Option to turn autoscaling on for fluentd and specify params for HPA.
## Autoscaling needs metrics-server to access cpu metrics.
autoscaling:
Expand Down Expand Up @@ -783,6 +813,21 @@ fluentd:
fluentd:
securityContext: {}

# This supports either a structured array or a templatable string
initContainers: []

# Array mode
# initContainers:
# - name: do-something
# image: bitnami/kubectl:1.22
# command: ['kubectl', 'version']

# String mode
# initContainers: |-
# - name: do-something
# image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ trimSuffix "+" .Capabilities.KubeVersion.Minor }}
# command: ['kubectl', 'version']

## Override output section for events. Leave empty for the default output section
overrideOutputConf: |-

Expand Down