Skip to content

Commit

Permalink
feat(fluent-bit-aggregator): Fixed config mount
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
  • Loading branch information
stevehipwell committed Jun 16, 2023
1 parent f4a5a56 commit 9a6ff3d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 22 deletions.
6 changes: 6 additions & 0 deletions charts/fluent-bit-aggregator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security - In case of vulnerabilities.
-->

## [v0.3.3] - 2023-06-16

### Fixed

- Fixed config mount to support hot-reload.

## [v0.3.2] - 2023-06-15

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions charts/fluent-bit-aggregator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: fluent-bit-aggregator
description: Helm chart for Fluent Bit running as an aggregation stateful set.
type: application
version: 0.3.2
version: 0.3.3
appVersion: 2.1.4
keywords:
- fluent
Expand All @@ -23,4 +23,4 @@ annotations:
artifacthub.io/alternativeName: fluent-bit
artifacthub.io/changes: |
- kind: fixed
description: "Fixed hot-reload volume mounts."
description: "Fixed config mount to support hot-reload."
6 changes: 3 additions & 3 deletions charts/fluent-bit-aggregator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fluent-bit-aggregator

![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.4](https://img.shields.io/badge/AppVersion-2.1.4-informational?style=flat-square)
![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.4](https://img.shields.io/badge/AppVersion-2.1.4-informational?style=flat-square)

Helm chart for Fluent Bit running as an aggregation stateful set.

Expand All @@ -22,14 +22,14 @@ Helm chart for Fluent Bit running as an aggregation stateful set.
To install the chart using the recommended OCI method you can use the following command.

```shell
helm upgrade --install fluent-bit-aggregator oci://ghcr.io/stevehipwell/helm-charts/fluent-bit-aggregator --version 0.3.2
helm upgrade --install fluent-bit-aggregator oci://ghcr.io/stevehipwell/helm-charts/fluent-bit-aggregator --version 0.3.3
```

Alternativly you can use the legacy non-OCI method via the following commands.

```shell
helm repo add stevehipwell https://stevehipwell.github.io/helm-charts/
helm upgrade --install fluent-bit-aggregator stevehipwell/fluent-bit-aggregator --version 0.3.2
helm upgrade --install fluent-bit-aggregator stevehipwell/fluent-bit-aggregator --version 0.3.3
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion charts/fluent-bit-aggregator/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
***********************************************************************
* Fluent Bit Aggregator *
* Fluent Bit Aggregator *
***********************************************************************
Chart version: {{ .Chart.Version }}
App version: {{ .Chart.AppVersion }}
Expand Down
20 changes: 4 additions & 16 deletions charts/fluent-bit-aggregator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
args:
- /fluent-bit/bin/fluent-bit
- --config=/fluent-bit/etc/fluent-bit.conf
- --config=/fluent-bit/etc/conf/fluent-bit.conf
{{- if .Values.hotReload.enabled }}
- --enable-hot-reload
{{- end }}
Expand All @@ -94,18 +93,7 @@ spec:
{{- toYaml .Values.readinessProbe | nindent 12 }}
volumeMounts:
- name: config
mountPath: /fluent-bit/etc/fluent-bit.conf
subPath: fluent-bit.conf
{{- if .Values.config.customParsers }}
- name: config
mountPath: /fluent-bit/etc/custom-parsers.conf
subPath: custom-parsers.conf
{{- end }}
{{- range $k, $v := .Values.config.extraFiles }}
- name: config
mountPath: {{ printf "/fluent-bit/etc/%s" $k }}
subPath: {{ $k }}
{{- end }}
mountPath: /fluent-bit/etc/conf
{{- if .Values.config.luaScripts }}
- name: scripts
mountPath: /fluent-bit/scripts
Expand All @@ -126,10 +114,10 @@ spec:
image: {{ include "fluent-bit-aggregator.reloaderImage" . }}
args:
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.service.httpPort) }}
- -volume-dir=/watch
- -volume-dir=/watch/config
volumeMounts:
- name: config
mountPath: /watch
mountPath: /watch/config
{{- with .Values.hotReload.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit 9a6ff3d

Please sign in to comment.