Skip to content

Commit 637b96d

Browse files
Update ProvisioningRequest API with the new name of scale-up provisioning class
1 parent e795ac9 commit 637b96d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cluster-autoscaler/apis/provisioningrequest/autoscaling.x-k8s.io/v1beta1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const (
197197
// ProvisioningClassCheckCapacity denotes that CA will check if current cluster state can fulfill this request,
198198
// and reserve the capacity for a specified time.
199199
ProvisioningClassCheckCapacity string = "check-capacity.autoscaling.x-k8s.io"
200-
// ProvisioningClassAtomicScaleUp denotes that CA try to provision the capacity
200+
// ProvisioningClassBestEffortAtomicScaleUp denotes that CA try to provision the capacity
201201
// in an atomic manner.
202-
ProvisioningClassAtomicScaleUp string = "atomic-scale-up.autoscaling.x-k8s.io"
202+
ProvisioningClassBestEffortAtomicScaleUp string = "best-effort-atomic-scale-up.autoscaling.x-k8s.io"
203203
)

cluster-autoscaler/provisioningrequest/orchestrator/orchestrator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func TestScaleUp(t *testing.T) {
8383
CPU: "1",
8484
Memory: "1",
8585
PodCount: int32(5),
86-
Class: v1beta1.ProvisioningClassAtomicScaleUp,
86+
Class: v1beta1.ProvisioningClassBestEffortAtomicScaleUp,
8787
})
8888

8989
// Already provisioned provisioning request - capacity should be booked before processing a new request.

0 commit comments

Comments
 (0)