Skip to content

Commit

Permalink
Add custom volumeclaimtemplates (#163)
Browse files Browse the repository at this point in the history
* Add option to add extra volumeClaimTemplates

Signed-off-by: Sebastian Lang <[email protected]>

* Handle graylog.persistence enabled/disabled

Signed-off-by: Sebastian Lang <[email protected]>

---------

Signed-off-by: Sebastian Lang <[email protected]>
Co-authored-by: Sebastian Lang <[email protected]>
  • Loading branch information
SebastianLng and Sebastian Lang authored Aug 9, 2024
1 parent 8145acd commit 3d8b70d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/graylog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: graylog
home: https://www.graylog.org
version: 2.3.8
version: 2.3.9
appVersion: 5.2.6
description: Graylog is the centralized log management solution built to open
standards for capturing, storing, and enabling real-time analysis of terabytes
Expand Down
1 change: 1 addition & 0 deletions charts/graylog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ The following table lists the configurable parameters of the Graylog chart and t
| `graylog.sidecarContainers` | Sidecar containers to run in the server statefulset | `[]` |
| `graylog.extraVolumeMounts` | Additional Volume mounts | `[]` |
| `graylog.extraVolumes` | Additional Volumes | `[]` |
| `graylog.extraVolumeClaimTemplates` | Additional Volume claim templates | `[]` |
| `graylog.extraInitContainers` | Additional Init containers | `[]` |
| `graylog.secret.annotations` | Graylog Secret annotations | `{}` |
| `rbac.create` | If true, create & use RBAC resources | `true` |
Expand Down
8 changes: 7 additions & 1 deletion charts/graylog/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ spec:
{{- if not .Values.graylog.persistence.enabled }}
- name: journal
emptyDir: {}
{{- else }}
{{- end }}
{{- if or .Values.graylog.persistence.enabled .Values.graylog.extraVolumeClaimTemplates }}
volumeClaimTemplates:
{{- if .Values.graylog.persistence.enabled }}
- metadata:
name: journal
spec:
Expand All @@ -281,4 +283,8 @@ spec:
resources:
requests:
storage: "{{ .Values.graylog.persistence.size }}"
{{- end }}
{{- if .Values.graylog.extraVolumeClaimTemplates }}
{{ toYaml .Values.graylog.extraVolumeClaimTemplates | nindent 4 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ graylog:
##
extraVolumes: []

## Additional volume claim templates
##
extraVolumeClaimTemplates: []

## A service for Graylog web interface
##
service:
Expand Down

0 comments on commit 3d8b70d

Please sign in to comment.