Skip to content

Expose priorityClassName for alpha and zero pods#139

Open
talst wants to merge 1 commit into
dgraph-io:mainfrom
talst:feat/priority-class-name-alpha-zero
Open

Expose priorityClassName for alpha and zero pods#139
talst wants to merge 1 commit into
dgraph-io:mainfrom
talst:feat/priority-class-name-alpha-zero

Conversation

@talst

@talst talst commented Jul 6, 2026

Copy link
Copy Markdown

Closes #129.

Problem

The alpha and zero StatefulSets have no way to reference a PriorityClass, so their pods can't be protected from preemption on contended clusters.

Solution

Expose an optional alpha.priorityClassName and zero.priorityClassName (default unset). Pod-level preemptionPolicy is intentionally not exposed: Kubernetes rejects a pod whose preemptionPolicy differs from its PriorityClass, so it belongs on the PriorityClass itself — matching the convention of the Bitnami, Consul, and prometheus charts.

The details

Adds the chart's first helm-unittest suites (charts/dgraph/tests/) covering the rendered field, plus a default-priority helmfile env + example values for manual live-cluster testing.

🤖 Generated with Claude Code

- Add an optional priorityClassName to the alpha and zero StatefulSets so
  pods can reference an existing PriorityClass; defaults to unset
- Deliberately do not expose a pod-level preemptionPolicy: Kubernetes
  forbids a pod whose preemptionPolicy differs from its PriorityClass, so
  it belongs on the PriorityClass itself (matches the Bitnami, Consul, and
  prometheus charts)
- Add the chart's first helm-unittest suites covering the rendered field
- Add a default-priority helmfile env and example values for manual
  live-cluster testing (v0-style, not run in CI)

Co-Authored-By: Claude <noreply@anthropic.com>
@talst
talst marked this pull request as ready for review July 6, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Expose priorityClassName and preemptionPolicy in chart values for Alpha and Zero pods

1 participant