[stable/graylog] provisioner job hook (#23468)

* [stable/graylog] Added helm hooks to trigger provisioner job on upgrades

Signed-off-by: Volodymyr Linevych <linevych.v@gmail.com>

* version bump

Signed-off-by: Volodymyr Linevych <linevych.v@gmail.com>

* make the annotations optional

Signed-off-by: Volodymyr Linevych <linevych.v@gmail.com>

* use generic annotations

Signed-off-by: Volodymyr Linevych <linevych.v@gmail.com>

* updated README

Signed-off-by: Volodymyr Linevych <linevych.v@gmail.com>

Co-authored-by: Volodymyr Linevych <linevych.v@gmail.com>
This commit is contained in:
Volodymyr Linevych
2020-08-10 00:50:19 -07:00
committed by GitHub
co-authored by Volodymyr Linevych
parent 95845921e1
commit cf6d6c4f90
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: graylog
home: https://www.graylog.org
version: 1.6.9
version: 1.6.10
appVersion: 3.1
description: Graylog is the centralized log management solution built to open standards for capturing, storing, and enabling real-time analysis of terabytes of machine data.
keywords:
+2 -1
View File
@@ -176,6 +176,7 @@ The following table lists the configurable parameters of the Graylog chart and t
| `graylog.journal.deleteBeforeStart` | Delete all journal files before start Graylog | `false` |
| `graylog.init.resources` | Configure resource requests and limits for the Graylog StatefulSet initContainer | `{}` |
| `graylog.provisioner.enabled` | Enable optional Job to run an arbitrary Bash script | `false` |
| `graylog.provisioner.annotations` | Graylog provisioner Job annotations | `{}` |
| `graylog.provisioner.useGraylogServiceAccount` | Use the same ServiceAccount used by Graylog pod | `false` |
| `graylog.provisioner.script` | The contents of the provisioner Bash script | |
| `graylog.sidecarContainers` | Sidecar containers to run in the server statefulset | `[]` |
@@ -322,4 +323,4 @@ Note: All uncommitted logs will be permanently DELETED when this value is true
[2]: https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions
[3]: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret
[4]: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
[5]: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
[5]: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
+4
View File
@@ -5,6 +5,10 @@ metadata:
name: {{ template "graylog.fullname" . }}-provisioner-job
labels:
{{ include "graylog.metadataLabels" . | indent 4 }}
{{- with .Values.graylog.provisioner.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
template:
metadata:
+1
View File
@@ -368,6 +368,7 @@ graylog:
##
provisioner:
enabled: false
annotations: {}
useGraylogServiceAccount: false
# script: |
# json='{