Skip to content

Commit

Permalink
feat(fluent-bit-aggregator): Fixed hot-reload watch (#718)
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 15, 2023
1 parent 5a2bbe7 commit f4a5a56
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 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.2] - 2023-06-15

### Fixed

- Fixed hot-reload volume mounts.

## [v0.3.1] - 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.1
version: 0.3.2
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 args when hot-reload is enabled."
description: "Fixed hot-reload volume mounts."
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.1](https://img.shields.io/badge/Version-0.3.1-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.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)

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.1
helm upgrade --install fluent-bit-aggregator oci://ghcr.io/stevehipwell/helm-charts/fluent-bit-aggregator --version 0.3.2
```

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.1
helm upgrade --install fluent-bit-aggregator stevehipwell/fluent-bit-aggregator --version 0.3.2
```

## Values
Expand Down
15 changes: 2 additions & 13 deletions charts/fluent-bit-aggregator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,10 @@ spec:
image: {{ include "fluent-bit-aggregator.reloaderImage" . }}
args:
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.service.httpPort) }}
- -volume-dir=/fluent-bit/etc
- -volume-dir=/watch
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: /watch
{{- with .Values.hotReload.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit f4a5a56

Please sign in to comment.