10000 [Feature] [ML] Use Scheduler API · arangodb/kube-arangodb@409ed4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 409ed4a

Browse files
committed
[Feature] [ML] Use Scheduler API
1 parent 2eb83f3 commit 409ed4a

File tree

6 files changed

+2
-199
lines changed

6 files changed

+2
-199
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- (Feature) Add Core fields to the Scheduler Container Spec
55
- (Feature) Add Metadata fields to the Scheduler Pod Spec
66
- (Feature) Extend Backup Details in DebugPackage
7+
- (Feature) (ML) Use Scheduler API
78

89
## [1.2.39](https://github.com/arangodb/kube-arangodb/tree/1.2.39) (2024-03-11)
910
- (Feature) Extract Scheduler API

pkg/ml/container_auth_jwt.go

Lines changed: 0 additions & 84 deletions
This file was deleted.

pkg/ml/container_ca.go

Lines changed: 0 additions & 51 deletions
This file was deleted.

pkg/ml/container_jwt.go

Lines changed: 0 additions & 55 deletions
This file was deleted.

pkg/operatorV2/operator_worker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func (o *operator) worker() {
3838
func (o *operator) processNextItem() bool {
3939
defer func() {
4040
// Recover from panic to not shutdown whole operator
41+
return
4142
if err := recover(); err != nil {
4243
e := loggerWorker.Str("type", "worker")
4344

pkg/util/k8sutil/helpers/service_account.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,3 @@ func EnsureServiceAccount(ctx context.Context, client kubernetes.Interface, owne
383383

384384
return false, nil
385385
}
386-
387-
func AppendServiceAccount(obj *sharedApi.ServiceAccount, spec *core.PodTemplateSpec) {
388-
if obj == nil || obj.Object == nil || spec == nil {
389-
return
390-
}
391-
392-
spec.Spec.ServiceAccountName = obj.Object.GetName()
393-
spec.Spec.AutomountServiceAccountToken = util.NewType(true)
394-
}

0 commit comments

Comments
 (0)
0