8000 [Feature] [Scheduler] Add Status Conditions (#1720) · arangodb/kube-arangodb@9e7ed8d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e7ed8d

Browse files
authored
[Feature] [Scheduler] Add Status Conditions (#1720)
1 parent 6404de3 commit 9e7ed8d

29 files changed

+529
-60
lines changed

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ linters-settings:
7979
pkg: github.com/arangodb/kube-arangodb/pkg/apis/scheduler/v1beta1/container
8080
- alias: schedulerContainerResourcesApi
8181
pkg: github.com/arangodb/kube-arangodb/pkg/apis/scheduler/v1beta1/container/resources
82+
- alias: schedulerIntegrationApi
83+
pkg: github.com/arangodb/kube-arangodb/pkg/apis/scheduler/v1beta1/integration
8284
- alias: schedulerPodApi
8385
pkg: github.com/arangodb/kube-arangodb/pkg/apis/scheduler/v1beta1/pod
8486
- alias: schedulerPodResourcesApi

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- (Feature) (Gateway) ArangoDB Auth Token
2929
- (Feature) (Gateway) Dynamic Configuration
3030
- (Feature) DebugPackage ArangoRoutes
31+
- (Feature) (Scheduler) Add Status Conditions
3132

3233
## [1.2.42](https://github.com/arangodb/kube-arangodb/tree/1.2.42) (2024-07-23)
3334
- (Maintenance) Go 1.22.4 & Kubernetes 1.29.6 libraries

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ update-generated:
452452
"github.com/arangodb/kube-arangodb/pkg/apis" \
453453
"shared:v1 \
454454
scheduler:v1alpha1/container scheduler:v1alpha1/container/resources scheduler:v1alpha1/pod scheduler:v1alpha1/pod/resources \
455-
scheduler:v1beta1/container scheduler:v1beta1/container/resources scheduler:v1beta1/pod scheduler:v1beta1/pod/resources" \
455+
scheduler:v1beta1/integration scheduler:v1beta1/container scheduler:v1beta1/container/resources scheduler:v1beta1/pod scheduler:v1beta1/pod/resources" \
456456
--go-header-file "./tools/codegen/boilerplate.go.txt" \
457457
$(VERIFYARGS)
458458

docs/api/ArangoDeployment.V1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,7 @@ Links:
31103110

31113111
### .spec.gateway.sidecar.controllerListenPort
31123112

3113-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration.go#L36)</sup>
3113+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration/integration.go#L16)</sup>
31143114

31153115
ControllerListenPort defines on which port the sidecar container will be listening for controller requests
31163116

@@ -3168,7 +3168,7 @@ Lifecycle keeps actions that the management system should take in response to co
31683168

31693169
### .spec.gateway.sidecar.listenPort
31703170

3171-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration.go#L32)</sup>
3171+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration/integration.go#L12)</sup>
31723172

31733173
ListenPort defines on which port the sidecar container will be listening for connections
31743174

docs/api/ArangoMLExtension.V1Beta1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ Links:
798798

799799
### .spec.integrationSidecar.controllerListenPort
800800

801-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration.go#L36)</sup>
801+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration/integration.go#L16)</sup>
802802

803803
ControllerListenPort defines on which port the sidecar container will be listening for controller requests
804804

@@ -856,7 +856,7 @@ Lifecycle keeps actions that the management system should take in response to co
856856

857857
### .spec.integrationSidecar.listenPort
858858

859-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration.go#L32)</sup>
859+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration/integration.go#L12)</sup>
860860

861861
ListenPort defines on which port the sidecar container will be listening for connections
862862

docs/api/ArangoProfile.V1Beta1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,5 +394,5 @@ Links:
394394

395395
### .spec.template.priority
396396

397-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/profile_template.go#L30)</sup>
397+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/profile_template.go#L31)</sup>
398398

docs/api/GraphAnalyticsEngine.V1Alpha1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Links:
440440

441441
### .spec.integrationSidecar.controllerListenPort
442442

443-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration.go#L36)</sup>
443+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration/integration.go#L16)</sup>
444444

445445
ControllerListenPort defines on which port the sidecar container will be listening for controller requests
446446

@@ -498,7 +498,7 @@ Lifecycle keeps actions that the management system should take in response to co
498498

499499
### .spec.integrationSidecar.listenPort
500500

501-
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration.go#L32)</sup>
501+
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.42/pkg/apis/scheduler/v1beta1/integration/integration.go#L12)</sup>
502502

503503
ListenPort defines on which port the sidecar container will be listening for connections
504504

internal/docs_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func Test_GenerateAPIDocs(t *testing.T) {
180180
"scheduler/v1beta1",
181181
"scheduler/v1beta1/container",
182182
"scheduler/v1beta1/container/resources",
183+
"scheduler/v1beta1/integration",
183184
"scheduler/v1beta1/pod",
184185
"scheduler/v1beta1/pod/resources",
185186
},
@@ -253,6 +254,7 @@ func Test_GenerateAPIDocs(t *testing.T) {
253254
"scheduler/v1beta1",
254255
"scheduler/v1beta1/container",
255256
"scheduler/v1beta1/container/resources",
257+
"scheduler/v1beta1/integration",
256258
"scheduler/v1beta1/pod",
257259
"scheduler/v1beta1/pod/resources",
258260
},
@@ -284,6 +286,7 @@ func Test_GenerateAPIDocs(t *testing.T) {
284286
"scheduler/v1beta1",
285287
"scheduler/v1beta1/container",
286288
"scheduler/v1beta1/container/resources",
289+
"scheduler/v1beta1/integration",
287290
"scheduler/v1beta1/pod",
288291
"scheduler/v1beta1/pod/resources",
289292
},
@@ -323,6 +326,7 @@ func Test_GenerateAPIDocs(t *testing.T) {
323326
"shared/v1",
324327
"scheduler/v1beta1/container",
325328
"scheduler/v1beta1/container/resources",
329+
"scheduler/v1beta1/integration",
326330
"scheduler/v1beta1/pod",
327331
"scheduler/v1beta1/pod/resources",
328332
},

pkg/apis/analytics/v1alpha1/gae_spec.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
package v1alpha1
2222

2323
import (
24-
schedulerApi "github.com/arangodb/kube-arangodb/pkg/apis/scheduler/v1beta1"
24+
schedulerIntegrationApi "github.com/arangodb/kube-arangodb/pkg/apis/scheduler/v1beta1/integration"
2525
shared "github.com/arangodb/kube-arangodb/pkg/apis/shared"
2626
"github.com/arangodb/kube-arangodb/pkg/util/errors"
2727
)
@@ -34,7 +34,7 @@ type GraphAnalyticsEngineSpec struct {
3434
Deployment *GraphAnalyticsEngineSpecDeployment `json:"deployment,omitempty"`
3535

3636
// IntegrationSidecar define the integration sidecar spec
37-
IntegrationSidecar *schedulerApi.IntegrationSidecar `json:"integrationSidecar,omitempty"`
37+
IntegrationSidecar *schedulerIntegrationApi.Sidecar `json:"integrationSidecar,omitempty"`
3838
}
3939

4040
func (a *GraphAnalyticsEngineSpec) GetDeployment() *GraphAnalyticsEngineSpecDeployment {
@@ -44,7 +44,7 @@ func (a *GraphAnalyticsEngineSpec) GetDeployment() *GraphAnalyticsEngineSpecDepl
4444
return a.Deployment
4545
}
4646

47-
func (a *GraphAnalyticsEngineSpec) GetIntegrationSidecar() *schedulerApi.IntegrationSidecar {
47+
func (a *GraphAnalyticsEngineSpec) GetIntegrationSidecar() *schedulerIntegrationApi.Sidecar {
4848
if a == nil || a.IntegrationSidecar == nil {
4949
return nil
5050
}

pkg/apis/analytics/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)
0