Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Conversation

croomes
Copy link
Contributor

@croomes croomes commented May 12, 2021

Sets the system-cluster-critical priority class on StorageOS pods that must be running somewhere in the cluster. This allows the Pod to move to another node if it doesn't tolerate a taint (such as memory pressure) but ensures it runs somewhere.

@croomes croomes requested review from avestuk, darkowlzz and mhmxs May 12, 2021 14:47
// Prior to StorageOS v2.4.0, the priority class was only set for Pods running
// in the kube-system namespace, as k8s 1.16 and earlier would only allow this.
func (s *Deployment) addPodPriorityClass(podSpec *corev1.PodSpec, priorityClass string) {
podSpec.PriorityClassName = priorityClass
Copy link
Contributor

@darkowlzz darkowlzz May 12, 2021

Choose a reason for hiding this comment

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

Getting rid of the kube-system namespace conditional, finally 😃
Maybe the comment about kube-system above is not necessary.

Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!

@croomes croomes merged commit 8b0bbba into master May 12, 2021
@croomes croomes deleted the helper-priority-class branch May 12, 2021 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants