Skip to content

Add PriorityClass support for pod scheduling and preemption#749

Open
miuponn wants to merge 15 commits into
mainfrom
priorityclass
Open

Add PriorityClass support for pod scheduling and preemption#749
miuponn wants to merge 15 commits into
mainfrom
priorityclass

Conversation

@miuponn
Copy link
Copy Markdown
Contributor

@miuponn miuponn commented Feb 13, 2026

What this PR does / why we need it?:

PR for #367

  • Adds optional priorityClassName field to RuntimeComponentSpec to allow users to assign k8s PriorityClass to operator-managed pods
  • Also propagates priorityClassName to the Knative service spec when createKnativeService is enabled

PR for OLO WLO

Does this PR introduce a user-facing change?

  • User guide
  • CHANGELOG.md

Which issue(s) this PR fixes:

@miuponn miuponn marked this pull request as draft February 13, 2026 01:54
@miuponn miuponn changed the title Add pod PriorityClass pod scheduling and preemption Add PriorityClass support for pod scheduling and preemption Feb 13, 2026
@miuponn miuponn marked this pull request as ready for review April 9, 2026 17:08
Copy link
Copy Markdown
Member

@leochr leochr left a comment

Choose a reason for hiding this comment

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

@miuponn Thank you for the PR. Looks good. Just add couple of minor comments.

// +operator-sdk:csv:customresourcedefinitions:order=30,type=spec,displayName="Host Aliases"
HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"`

// Name of the PriorityClass for the pod.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggestion: Name of the PriorityClass for the application pods.

Comment thread utils/utils.go

pts.Spec.Tolerations = ba.GetTolerations()

pts.Spec.PriorityClassName = ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This could be added in an 'else' block to avoid always setting to empty (even when PriorityClass is defined).

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