Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm: support PriorityClassName on gateway-proxy #9902

Merged
merged 7 commits into from
Aug 15, 2024

Conversation

sam-heilbron
Copy link
Contributor

@sam-heilbron sam-heilbron commented Aug 15, 2024

Description

Ensure that gateway-proxy deployments respect the gatewayProxy.NAME.kind.deployment.priorityClassName field. This API allows you to set the PriorityClassName for gateway-proxy Pods. This is already supported on all other Gloo deployments.

Context

Priority and Preemption

https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/

This is an important Kubernetes feature, that is especially relevant for Pods (like the data plane) that customers want to assign high priorities to.

Helm API

We have a PodSpec API, which was available under kind.deployment, but was not being used. I added a comment to clarify how this is confusing to developers.

Solution

I re-used an existing Helm field in our PodSpec.

This allows us to expose the relevant APIs that caused users to rely on the kubeResourceOverride. When using that override, users hit #8025.

Interesting decisions

Testing steps

  • I added a unit test to verify that this configures the field, as expected
  • All Helm unit tests pass locally:
TEST_PKG=install/test/... make test

Notes for reviewers

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@github-actions github-actions bot added keep pr updated signals bulldozer to keep pr up to date with base branch work in progress signals bulldozer to keep pr open (don't auto-merge) labels Aug 15, 2024
@solo-changelog-bot
Copy link

Issues linked to changelog:
#8677
#9010

@sam-heilbron sam-heilbron removed the work in progress signals bulldozer to keep pr open (don't auto-merge) label Aug 15, 2024
@sam-heilbron sam-heilbron marked this pull request as ready for review August 15, 2024 19:50
@sam-heilbron sam-heilbron requested a review from a team as a code owner August 15, 2024 19:50
@solo-changelog-bot
Copy link

Issues linked to changelog:
#8677
#9010
#9823

@solo-changelog-bot
Copy link

Issues linked to changelog:
#8677
#9010
#9823
#9731

Copy link

github-actions bot commented Aug 15, 2024

Visit the preview URL for this PR (updated for commit 7276992):

https://gloo-edge--pr9902-sh-helm-priority-cla-dwmllarw.web.app

(expires Thu, 22 Aug 2024 20:48:32 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 77c2b86e287749579b7ff9cadb81e099042ef677

@soloio-bulldozer soloio-bulldozer bot merged commit 7fd626b into main Aug 15, 2024
18 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the sh/helm-priority-class-name branch August 15, 2024 21:06
sam-heilbron added a commit that referenced this pull request Aug 16, 2024
* add priority class name, no tests

* add unit test

* add changelog

* update changelog to include other issue ref

* another duplicate

* update helm api, tests

* add conditional for kind.deployment
soloio-bulldozer bot pushed a commit that referenced this pull request Aug 16, 2024
* helm: support PriorityClassName on gateway-proxy (#9902)

* add priority class name, no tests

* add unit test

* add changelog

* update changelog to include other issue ref

* another duplicate

* update helm api, tests

* add conditional for kind.deployment

* move changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep pr updated signals bulldozer to keep pr up to date with base branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants