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

Allow to prefix provisioningClassName to filter provisioning requests #7676

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

macsko
Copy link
Member

@macsko macsko commented Jan 8, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds the ability to set a provisioningClassName prefix, and then the CA will only process provisioning requests that have a matching prefix. This can allow to simply run multiple CA instances and route specific provisioning requests to them, while being backward compatible.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Added provisioningClassPrefix option that allows to filter ProvisioningRequests' provisioningClassName to process by specific Cluster Autoscaler instance.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/cluster-autoscaler labels Jan 8, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: macsko
Once this PR has been reviewed and has the lgtm label, please assign aleksandra-malinowska for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 8, 2025
@macsko
Copy link
Member Author

macsko commented Jan 8, 2025

/cc @aleksandra-malinowska

@macsko macsko force-pushed the allow_to_prefix_provisioning_class_name_to_filter_prs branch from 001b922 to 4fa718f Compare January 9, 2025 14:38
@macsko macsko requested a review from gabesaba January 9, 2025 14:40
Copy link
Contributor

@gabesaba gabesaba left a comment

Choose a reason for hiding this comment

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

lgtm after addressing last 2 nits

cluster-autoscaler/processors/provreq/injector_test.go Outdated Show resolved Hide resolved
cluster-autoscaler/processors/provreq/injector_test.go Outdated Show resolved Hide resolved
@macsko macsko force-pushed the allow_to_prefix_provisioning_class_name_to_filter_prs branch from 4fa718f to 43513b7 Compare January 10, 2025 10:19
@macsko macsko requested a review from gabesaba January 10, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cluster-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants