Skip to content

Commit f6ab5e6

Browse files
committed
fix lint and verify issues
Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
1 parent e3307e6 commit f6ab5e6

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

config/crd/orchestration/orchestration.aibrix.ai_stormservices.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3897,7 +3897,10 @@ spec:
38973897
pause:
38983898
properties:
38993899
duration:
3900-
type: string
3900+
anyOf:
3901+
- type: integer
3902+
- type: string
3903+
x-kubernetes-int-or-string: true
39013904
type: object
39023905
setWeight:
39033906
format: int32
@@ -3940,6 +3943,19 @@ spec:
39403943
currentWeight:
39413944
format: int32
39423945
type: integer
3946+
pauseConditions:
3947+
items:
3948+
properties:
3949+
reason:
3950+
type: string
3951+
startTime:
3952+
format: date-time
3953+
type: string
3954+
required:
3955+
- reason
3956+
- startTime
3957+
type: object
3958+
type: array
39433959
pausedAt:
39443960
format: date-time
39453961
type: string

test/integration/controller/stormservice_canary_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ var _ = ginkgo.Describe("StormService Canary Controller Integration Test", func(
339339
latest := &orchestrationapi.StormService{}
340340
g.Expect(k8sClient.Get(ctx, client.ObjectKeyFromObject(stormService), latest)).To(gomega.Succeed())
341341
// Change container image to trigger updateRevision != currentRevision
342-
if len(latest.Spec.Template.Spec.Roles) > 0 && len(latest.Spec.Template.Spec.Roles[0].Template.Spec.Containers) > 0 {
342+
if len(latest.Spec.Template.Spec.Roles) > 0 &&
343+
len(latest.Spec.Template.Spec.Roles[0].Template.Spec.Containers) > 0 {
343344
latest.Spec.Template.Spec.Roles[0].Template.Spec.Containers[0].Image = "nginx:1.21"
344345
g.Expect(k8sClient.Update(ctx, latest)).To(gomega.Succeed())
345346
}

0 commit comments

Comments
 (0)