Skip to content

Commit 4653b7a

Browse files
committed
++ fix yaml syntax, inject vmop service
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
1 parent 2d9e744 commit 4653b7a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

images/virtualization-artifact/pkg/controller/livemigration/live_migration_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/deckhouse/deckhouse/pkg/log"
2828
"github.com/deckhouse/virtualization-controller/pkg/config"
2929
"github.com/deckhouse/virtualization-controller/pkg/controller/livemigration/internal"
30+
"github.com/deckhouse/virtualization-controller/pkg/controller/service"
3031
"github.com/deckhouse/virtualization-controller/pkg/logger"
3132
)
3233

@@ -43,9 +44,10 @@ func NewController(
4344
// recorder := eventrecord.NewEventRecorderLogger(mgr, ControllerName)
4445
// mgrCache := mgr.GetCache()
4546
client := mgr.GetClient()
47+
vmopService := service.NewVMOperationService(client)
4648

4749
handlers := []Handler{
48-
internal.NewDynamicSettingsHandler(client, liveMigrationSettings),
50+
internal.NewDynamicSettingsHandler(client, liveMigrationSettings, vmopService),
4951
}
5052
r := NewReconciler(client, handlers...)
5153

openapi/config-values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ properties:
230230
properties:
231231
bandwidthPerNode:
232232
type: string
233-
pattern: '^[1-9][0-9]+([kMGTP]i)?$'
233+
pattern: "^[1-9][0-9]+([kMGTP]i)?$"
234234
description: |
235235
Maximum aggregated network bandwidth for migrations from one Node.
236236
maxMigrationsPerNode:
@@ -244,8 +244,8 @@ properties:
244244
- Shared - use the same network with virtual machines.
245245
- Dedicated - use a separated network for migrations. Specify interface in dedicated section.
246246
enum:
247-
- Shared
248-
- Dedicated
247+
- "Shared"
248+
- "Dedicated"
249249
dedicated:
250250
type: object
251251
description: |
@@ -254,8 +254,8 @@ properties:
254254
interfaceName:
255255
type: string
256256
x-examples:
257-
- eth0
258-
- veth2
257+
- "eth0"
258+
- "veth2"
259259
description: |
260260
Interface name for the dedicated network.
261261
logLevel:

0 commit comments

Comments
 (0)