Skip to content

Commit f89e64d

Browse files
authored
[Feature] [Scheduler] Deployment Scale (#1764)
1 parent 5a05c1d commit f89e64d

File tree

11 files changed

+92
-0
lines changed

11 files changed

+92
-0
lines changed

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ linters-settings:
131131
pkg: k8s.io/api/storage/v1
132132
- alias: meta
133133
pkg: k8s.io/apimachinery/pkg/apis/meta/v1
134+
- alias: autoscaling
135+
pkg: k8s.io/api/autoscaling/v1
134136
- alias: typedCore
135137
pkg: k8s.io/client-go/kubernetes/typed/core/v1
136138
- alias: ugrpc

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- (Feature) (Platform) Storage
2222
- (Maintenance) Extract GRPC Client Package
2323
- (Feature) (Platform) Chart
24+
- (Feature) (Scheduler) Deployment Scale Functionality
2425

2526
## [1.2.43](https://github.com/arangodb/kube-arangodb/tree/1.2.43) (2024-10-14)
2627
- (Feature) ArangoRoute CRD

chart/kube-arangodb-arm64/crds/scheduler-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ spec:
2020
storage: true
2121
subresources:
2222
status: {}
23+
scale:
24+
specReplicasPath: .spec.replicas
25+
statusReplicasPath: .status.replicas

chart/kube-arangodb-enterprise-arm64/crds/scheduler-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ spec:
2020
storage: true
2121
subresources:
2222
status: {}
23+
scale:
24+
specReplicasPath: .spec.replicas
25+
statusReplicasPath: .status.replicas

chart/kube-arangodb-enterprise/crds/scheduler-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ spec:
2020
storage: true
2121
subresources:
2222
status: {}
23+
scale:
24+
specReplicasPath: .spec.replicas
25+
statusReplicasPath: .status.replicas

chart/kube-arangodb/crds/scheduler-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ spec:
2020
storage: true
2121
subresources:
2222
status: {}
23+
scale:
24+
specReplicasPath: .spec.replicas
25+
statusReplicasPath: .status.replicas

pkg/apis/scheduler/v1beta1/types_deployment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ type ArangoSchedulerDeploymentList struct {
3838
}
3939

4040
// +genclient
41+
// +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale
42+
// +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale
4143
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4244

4345
// ArangoSchedulerDeployment wraps apps. ArangoSchedulerDeployment with profile details

pkg/crd/crds/scheduler-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ spec:
2020
storage: true
2121
subresources:
2222
status: {}
23+
scale:
24+
specReplicasPath: .spec.replicas
25+
statusReplicasPath: .status.replicas

pkg/generated/clientset/versioned/typed/scheduler/v1beta1/arangoschedulerdeployment.go

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/clientset/versioned/typed/scheduler/v1beta1/fake/fake_arangoschedulerdeployment.go

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)