Skip to content

feat(helm): add priorityClassName support#20678

Merged
rowansmithau merged 4 commits intocoder:mainfrom
leo-wr-ps:feat-helm_20676-priorityClassName
Nov 24, 2025
Merged

feat(helm): add priorityClassName support#20678
rowansmithau merged 4 commits intocoder:mainfrom
leo-wr-ps:feat-helm_20676-priorityClassName

Conversation

@leo-wr-ps
Copy link
Contributor

Add priorityClassName support to Coder Helm chart

Add coder.priorityClassName configuration to the Helm chart that allows setting the pod's priorityClassName in the deployment

Usage:

coder:
  priorityClassName: high-priority

See: #20676

@cdr-bot cdr-bot bot added the community Pull Requests and issues created by the community. label Nov 6, 2025
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@leo-wr-ps leo-wr-ps force-pushed the feat-helm_20676-priorityClassName branch from f2d2c1d to 0afe8bb Compare November 6, 2025 11:20
@leo-wr-ps
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull request Nov 6, 2025
@leo-wr-ps
Copy link
Contributor Author

recheck

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for specifying a priorityClassName for Coder pods in the Helm chart deployment, allowing users to control pod scheduling priority in Kubernetes clusters.

  • Adds coder.priorityClassName configuration option to the Helm values
  • Implements conditional rendering of priorityClassName in the deployment template
  • Includes comprehensive test coverage with golden file tests for both default and coder namespaces

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
helm/libcoder/templates/_coder.yaml Adds conditional template logic to render priorityClassName field in pod spec
helm/coder/values.yaml Defines new priorityClassName configuration option with documentation and empty string default
helm/coder/tests/testdata/priority_class_name.yaml Provides test input values with priorityClassName: high-priority
helm/coder/tests/testdata/priority_class_name.golden Golden file showing expected rendered output for default namespace
helm/coder/tests/testdata/priority_class_name_coder.golden Golden file showing expected rendered output for coder namespace
helm/coder/tests/chart_test.go Adds test case entry for priority_class_name tests

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

@leo-wr-ps
Copy link
Contributor Author

@rowansmithau thanks for approving. Anything else needed on my side to get this merged?

@rowansmithau rowansmithau merged commit 3847f3b into coder:main Nov 24, 2025
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community Pull Requests and issues created by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants