Skip to content

feat(helm): replace reloader toggle with generic deploymentAnnotations#3736

Merged
djwhitt merged 2 commits into
feat/helmfrom
davidwhittington/helm-deployment-annotations
Jul 24, 2026
Merged

feat(helm): replace reloader toggle with generic deploymentAnnotations#3736
djwhitt merged 2 commits into
feat/helmfrom
davidwhittington/helm-deployment-annotations

Conversation

@djwhitt

@djwhitt djwhitt commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Stacked on #3735 (which is stacked on feat/helm). Addresses Ziinc's review comment on #3728: the logflare.reloader boolean hard-coded a Stakater-specific annotation, too opinionated for a public/community chart.

Change

Replaces the reloader toggle with a generic top-level deploymentAnnotations map (mirroring podAnnotations) rendered onto the Deployment's own metadata.annotations.

  • Chart stays neutral about the reload mechanism — opt into Reloader with:
    deploymentAnnotations:
      reloader.stakater.com/auto: "true"

djwhitt added 2 commits July 24, 2026 10:50
Adds an opt-in `vmArgs` value rendered into a ConfigMap, mounted at
/etc/logflare/vm.args, and wired via RELEASE_VM_ARGS. Defaults to a set
including `+Q 1048576`, which caps the BEAM's preallocated port table — needed
on Kubernetes, where containerd runs pods with nofile=infinity and the VM would
otherwise size the table from that (~2GB RSS at boot).

Mounted with subPath so it coexists with the cert-files mount under
/etc/logflare. A checksum/vm-args pod annotation rolls the Deployment when the
args change. Set vmArgs to "" to fall back to the image's baked-in vm.args.
Adds helm-unittest coverage.
…ploymentAnnotations

Per review on #3728: the `logflare.reloader` boolean hard-coded a Stakater-
specific annotation, which is too opinionated for a public chart. Replace it
with a generic top-level `deploymentAnnotations` map (mirroring podAnnotations)
that renders onto the Deployment's own metadata.annotations.

This keeps the chart neutral about the reload mechanism — opt into Reloader with
`deploymentAnnotations: { reloader.stakater.com/auto: "true" }` — and fills a
real gap: there was no hook for Deployment-level annotations (podAnnotations
only reaches the pod template). Updates the helm-unittest cases and README.
Base automatically changed from davidwhittington/helm-vm-args to feat/helm July 24, 2026 16:54
@djwhitt
djwhitt requested review from Ziinc and stigglor July 24, 2026 17:28
@djwhitt
djwhitt merged commit 7df7056 into feat/helm Jul 24, 2026
2 checks passed
@djwhitt
djwhitt deleted the davidwhittington/helm-deployment-annotations branch July 24, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants