From 79c9becbdb1b95f6a62fe191b18be889af9c0716 Mon Sep 17 00:00:00 2001 From: maddin Date: Sat, 28 Nov 2026 14:47:31 +0100 Subject: [PATCH] Add statefulsetAnnotations option to Helm chart --- helm/trivy/templates/statefulset.yaml | 4 ++++ helm/trivy/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/helm/trivy/templates/statefulset.yaml b/helm/trivy/templates/statefulset.yaml index 7d7211c399..e4b81d16b0 100644 --- a/helm/trivy/templates/statefulset.yaml +++ b/helm/trivy/templates/statefulset.yaml @@ -2,6 +2,10 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "trivy.fullname" . }} + {{- with .Values.statefulsetAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{ include "trivy.labels" . | indent 4 }} {{- with .Values.trivy.labels }} diff --git a/helm/trivy/values.yaml b/helm/trivy/values.yaml index 177a62fab7..7e09810e6f 100644 --- a/helm/trivy/values.yaml +++ b/helm/trivy/values.yaml @@ -52,6 +52,10 @@ affinity: {} ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ tolerations: [] +## Annotations for the statefulset itself +## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +statefulsetAnnotations: {} + ## Annotations for pods created by statefulset ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ podAnnotations: {}