diff --git a/deploy/charts/buzz/Chart.yaml b/deploy/charts/buzz/Chart.yaml index 68743d850..21fb63b24 100644 --- a/deploy/charts/buzz/Chart.yaml +++ b/deploy/charts/buzz/Chart.yaml @@ -7,7 +7,7 @@ description: | PostgreSQL and Redis. Configurable for single-node evaluation (subcharts on) and HA production (external services, existingSecret). type: application -version: 0.1.3 +version: 0.1.4 appVersion: "0.1.0" home: https://github.com/block/buzz sources: @@ -25,6 +25,8 @@ annotations: artifacthub.io/changes: | - kind: added description: Initial chart for Buzz relay. + - kind: added + description: relay.deploymentAnnotations knob for Deployment-level annotations (e.g. Stakater Reloader). artifacthub.io/license: Apache-2.0 # Optional eval-only subcharts. Production deploys disable both and point diff --git a/deploy/charts/buzz/templates/deployment.yaml b/deploy/charts/buzz/templates/deployment.yaml index 10ebd3b7a..95934d6e4 100644 --- a/deploy/charts/buzz/templates/deployment.yaml +++ b/deploy/charts/buzz/templates/deployment.yaml @@ -5,6 +5,12 @@ metadata: name: {{ include "buzz.fullname" . }} labels: {{- include "buzz.labels" . | nindent 4 }} + {{- with .Values.relay.deploymentAnnotations }} + # Deployment-level annotations, e.g. Stakater Reloader to auto-roll pods + # when an external Secret (DB/Redis creds) rotates. + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} strategy: diff --git a/deploy/charts/buzz/values.yaml b/deploy/charts/buzz/values.yaml index 9edb534f1..e1d1067f3 100644 --- a/deploy/charts/buzz/values.yaml +++ b/deploy/charts/buzz/values.yaml @@ -133,6 +133,10 @@ relay: podAnnotations: {} podLabels: {} + # Annotations on the relay Deployment resource itself (not the pod template). + # Set e.g. secret.reloader.stakater.com/reload: to have + # Stakater Reloader roll the pods when that Secret rotates. + deploymentAnnotations: {} nodeSelector: {} tolerations: [] affinity: {}