Skip to content

feat(helm): add priorityClassName support#1004

Merged
decyjphr merged 2 commits into
main-enterprisefrom
copilot/allow-priorityclassname-in-helm-chart
Jun 17, 2026
Merged

feat(helm): add priorityClassName support#1004
decyjphr merged 2 commits into
main-enterprisefrom
copilot/allow-priorityclassname-in-helm-chart

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The Helm chart had no way to set priorityClassName on the pod, limiting control over scheduling priority when cluster resources are constrained.

Changes

  • values.yaml — Added priorityClassName: "" (empty default; opt-in, no impact on existing deployments)
  • templates/deployment.yaml — Conditionally renders priorityClassName in the pod spec only when set
  • README.md — Documents the new value in the values table

Usage

# values.yaml
priorityClassName: "high-priority"

or via --set priorityClassName=high-priority at install time.

Copilot AI changed the title [WIP] Add priorityClassName support in Helm chart for safe-settings feat(helm): add priorityClassName support Jun 17, 2026
Copilot AI requested a review from decyjphr June 17, 2026 05:28

@decyjphr decyjphr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏾

@decyjphr decyjphr marked this pull request as ready for review June 17, 2026 05:32
Copilot AI review requested due to automatic review settings June 17, 2026 05:32
@decyjphr decyjphr linked an issue Jun 17, 2026 that may be closed by this pull request
@decyjphr decyjphr merged commit 4dac294 into main-enterprise Jun 17, 2026
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Helm chart support for setting priorityClassName on the Deployment pod, enabling users to influence scheduling priority under resource pressure.

Changes:

  • Introduces priorityClassName as a new opt-in value in values.yaml.
  • Conditionally renders priorityClassName into the pod spec when the value is set.
  • Documents the new value in the chart README values table.
Show a summary per file
File Description
helm/safe-settings/values.yaml Adds a new priorityClassName value with an empty default.
helm/safe-settings/templates/deployment.yaml Conditionally injects priorityClassName into the pod spec.
helm/safe-settings/README.md Documents priorityClassName in the values table.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

Comment on lines +80 to +82
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
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.

Allow priorityClassName to be set in Helm chart

3 participants