Skip to content

fix(helm): git clone/sync containers need resources + sidecar probes#19

Merged
Neverdecel merged 1 commit into
masterfrom
fix/git-sidecar-probes-resources
Jun 16, 2026
Merged

fix(helm): git clone/sync containers need resources + sidecar probes#19
Neverdecel merged 1 commit into
masterfrom
fix/git-sidecar-probes-resources

Conversation

@Neverdecel

Copy link
Copy Markdown
Owner

Problem

On clusters that enforce resource limits and probes on every container (e.g. Kyverno require-resources / require-probes, or a strict LimitRange), installing the chart with workspace.git.sync.enabled=true is rejected:

Deployment/...-server blocked by policies:
  require-probes:    container 'git-sync' has no liveness/readiness probe
  require-resources: container 'git-sync' has no resource limits

The git-sync sidecar (and the git-clone init container) inherited only securityContext, never resources or probes.

Fix

  • Add workspace.git.resources (default 10m/32Mi → 100m/64Mi) applied to both git containers.
  • Add lightweight exec liveness/readiness probes to the long-running sync sidecar (test -d $DEST/.git — healthy once cloned). The short-lived clone init container takes resources but no probes.
  • Bump chart 0.1.0 → 0.1.1.

Validation

helm lint ✅ · rendered with sync enabled:

  • git-clone init: resources ✅, no probes (correct)
  • server/ui: unchanged (resources + 3 probes)
  • git-sync: resources+limits ✅, liveness+readiness ✅

Context

Surfaced deploying to a Kyverno-enforced K3s cluster (Neverdecel/starnode-core), where this blocked the install and git-sync had to be disabled. With this merged, auto-freshness can be re-enabled there.

The git-sync sidecar declared neither resource limits nor probes, so it is
rejected by common admission policies that require both on every container
(e.g. Kyverno require-resources / require-probes), which blocked the whole
install. Add a configurable workspace.git.resources (sensible defaults) to
both git containers, and lightweight exec liveness/readiness probes to the
long-running sync sidecar (healthy once the workspace is cloned). The clone
init container takes resources but no probes (short-lived). Bump chart to 0.1.1.
@Neverdecel Neverdecel merged commit 2c4b7ce into master Jun 16, 2026
12 checks passed
@Neverdecel Neverdecel deleted the fix/git-sidecar-probes-resources branch June 18, 2026 08:01
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.

1 participant