Skip to content

feat(sidecars): support native Kubernetes sidecar containers#67

Merged
bastianeicher merged 1 commit intonano-byte:masterfrom
pscheid92:feat/native-sidecar-support
Mar 17, 2026
Merged

feat(sidecars): support native Kubernetes sidecar containers#67
bastianeicher merged 1 commit intonano-byte:masterfrom
pscheid92:feat/native-sidecar-support

Conversation

@pscheid92
Copy link
Copy Markdown
Contributor

Summary

  • Add launchSidecarFirst option (default: false) that renders sidecars/sidecarTemplates as init containers with restartPolicy: Always (native Kubernetes sidecars) instead of regular containers
  • Ensures sidecars start before and outlive the main container (requires Kubernetes 1.29+ or 1.33+ stable)
  • Default behavior (launchSidecarFirst: false) is unchanged

Changes

  • values.yaml / values.schema.json: new launchSidecarFirst boolean
  • controller.yaml: conditional rendering of sidecars into initContainers[] with restartPolicy: Always when enabled
  • ci/native-sidecar-values.yaml: CI lint/template values file

Test plan

  • helm lint passes with native sidecar values
  • helm template output verified: sidecars rendered as init containers with restartPolicy: Always

@bastianeicher bastianeicher force-pushed the master branch 2 times, most recently from e16354d to 5eeea7b Compare March 13, 2026 21:31
@bastianeicher bastianeicher force-pushed the feat/native-sidecar-support branch from 7363a6c to 29529a0 Compare March 16, 2026 08:57
@pscheid92 pscheid92 force-pushed the feat/native-sidecar-support branch 2 times, most recently from eb702fb to 2712b66 Compare March 16, 2026 10:53
Add `launchSidecarFirst` option that renders sidecars as init containers
with `restartPolicy: Always` (Kubernetes native sidecars) instead of
regular containers, ensuring sidecars start before the main container.
@bastianeicher bastianeicher force-pushed the feat/native-sidecar-support branch from 18c1998 to bce4de5 Compare March 17, 2026 10:26
@bastianeicher bastianeicher merged commit b0aab35 into nano-byte:master Mar 17, 2026
@pscheid92 pscheid92 deleted the feat/native-sidecar-support branch March 17, 2026 10:30
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