From 158770a1ace82008da2a90c48e96dc13da7a9f52 Mon Sep 17 00:00:00 2001 From: Jake Willmsen <42048994+jdwillmsen@users.noreply.github.com> Date: Thu, 6 Aug 2026 20:21:02 -0500 Subject: [PATCH] feat(meowbot): add deploymentAnnotations hook for Reloader opt-in podAnnotations only reaches the pod template's metadata, but Reloader's secret.reloader.stakater.com/reload annotation must live on the Deployment object's own metadata for the controller to see it. Add a deploymentAnnotations values hook and set it in both env overrides, listing each Deployment's distinct Secret names sourced via env[].valueFrom.secretKeyRef. --- charts/meowbot/Chart.yaml | 2 +- charts/meowbot/templates/deployment.yaml | 4 ++++ charts/meowbot/values-non.yaml | 5 +++++ charts/meowbot/values-prd.yaml | 5 +++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/meowbot/Chart.yaml b/charts/meowbot/Chart.yaml index 982c067..bdbf035 100644 --- a/charts/meowbot/Chart.yaml +++ b/charts/meowbot/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: meowbot description: A Helm chart for Kubernetes type: application -version: 0.1.0 +version: 0.2.0 appVersion: "1.0.3" diff --git a/charts/meowbot/templates/deployment.yaml b/charts/meowbot/templates/deployment.yaml index 812ea00..1b36bba 100644 --- a/charts/meowbot/templates/deployment.yaml +++ b/charts/meowbot/templates/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "meowbot.fullname" . }} labels: {{- include "meowbot.labels" . | nindent 4 }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/charts/meowbot/values-non.yaml b/charts/meowbot/values-non.yaml index f379346..1bce0eb 100644 --- a/charts/meowbot/values-non.yaml +++ b/charts/meowbot/values-non.yaml @@ -34,3 +34,8 @@ envSecrets: key: dotablaze-tech-discord-bot-token property: token secretName: meowbot-non + +# Opt-in for Reloader: comma-separated Secret names, matching the two +# distinct secretName values among the envSecrets entries above. +deploymentAnnotations: + secret.reloader.stakater.com/reload: "meowbot-pg-non,meowbot-non" diff --git a/charts/meowbot/values-prd.yaml b/charts/meowbot/values-prd.yaml index 8c97f1d..9a43394 100644 --- a/charts/meowbot/values-prd.yaml +++ b/charts/meowbot/values-prd.yaml @@ -34,3 +34,8 @@ envSecrets: key: dotablaze-tech-discord-bot-token property: token secretName: meowbot-prd + +# Opt-in for Reloader: comma-separated Secret names, matching the two +# distinct secretName values among the envSecrets entries above. +deploymentAnnotations: + secret.reloader.stakater.com/reload: "meowbot-pg-prd,meowbot-prd"