You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9c1a5bf
Browse filesBrowse the repository at this point in the historyBrowse files
- it: forwards kubevirt.migrations into the kubevirt component values
546
+
set:
547
+
bundles:
548
+
system:
549
+
enabled: true
550
+
variant: isp-full
551
+
iaas:
552
+
enabled: true
553
+
enabledPackages: []
554
+
kubevirt:
555
+
migrations:
556
+
bandwidthPerMigration: 625M
557
+
parallelMigrationsPerCluster: 2
558
+
parallelOutboundMigrationsPerNode: 1
559
+
documentSelector:
560
+
path: metadata.name
561
+
value: cozystack.kubevirt
562
+
asserts:
563
+
- equal:
564
+
path: spec.components.kubevirt.values
565
+
value:
566
+
cpuAllocationRatio: 10
567
+
migrations:
568
+
bandwidthPerMigration: 625M
569
+
parallelMigrationsPerCluster: 2
570
+
parallelOutboundMigrationsPerNode: 1
571
+
572
+
- it: omits empty kubevirt.migrations
573
+
set:
574
+
bundles:
575
+
system:
576
+
enabled: true
577
+
variant: isp-full
578
+
iaas:
579
+
enabled: true
580
+
enabledPackages: []
581
+
kubevirt:
582
+
migrations: {}
583
+
documentSelector:
584
+
path: metadata.name
585
+
value: cozystack.kubevirt
586
+
asserts:
587
+
- equal:
588
+
path: spec.components.kubevirt.values
589
+
value:
590
+
cpuAllocationRatio: 10
591
+
592
+
- it: omits null kubevirt.migrations
593
+
set:
594
+
bundles:
595
+
system:
596
+
enabled: true
597
+
variant: isp-full
598
+
iaas:
599
+
enabled: true
600
+
enabledPackages: []
601
+
kubevirt:
602
+
migrations: null
603
+
documentSelector:
604
+
path: metadata.name
605
+
value: cozystack.kubevirt
606
+
asserts:
607
+
- equal:
608
+
path: spec.components.kubevirt.values
609
+
value:
610
+
cpuAllocationRatio: 10
611
+
612
+
- it: preserves false and zero kubevirt.migrations values
613
+
set:
614
+
bundles:
615
+
system:
616
+
enabled: true
617
+
variant: isp-full
618
+
iaas:
619
+
enabled: true
620
+
enabledPackages: []
621
+
kubevirt:
622
+
migrations:
623
+
allowAutoConverge: false
624
+
completionTimeoutPerGiB: 0
625
+
documentSelector:
626
+
path: metadata.name
627
+
value: cozystack.kubevirt
628
+
asserts:
629
+
- equal:
630
+
path: spec.components.kubevirt.values
631
+
value:
632
+
cpuAllocationRatio: 10
633
+
migrations:
634
+
allowAutoConverge: false
635
+
completionTimeoutPerGiB: 0
540
636
541
637
- it: appends user-supplied pciHostDevices in vgpu mode so post-kubevirt#16890 SR-IOV vGPU VFs can be advertised alongside the platform mediated defaults
Copy file name to clipboardExpand all lines: packages/system/kubevirt/Makefile
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ update:
53
53
@# sanity-check tail below.
54
54
grep -q '{{- with .Values.permittedHostDevices }}'$(CR_FILE)|| sed -i '/^ evictionStrategy:/i\ {{- with .Values.permittedHostDevices }}\n permittedHostDevices:\n {{- toYaml . | nindent 6 }}\n {{- end }}'$(CR_FILE)
55
55
grep -q '{{- with .Values.mediatedDevicesConfiguration }}'$(CR_FILE)|| sed -i '/^ evictionStrategy:/i\ {{- with .Values.mediatedDevicesConfiguration }}\n mediatedDevicesConfiguration:\n {{- toYaml . | nindent 6 }}\n {{- end }}'$(CR_FILE)
56
+
grep -q '{{- with .Values.migrations }}'$(CR_FILE)|| sed -i '/^ evictionStrategy:/i\ {{- with .Values.migrations }}\n migrations:\n {{- toYaml . | nindent 6 }}\n {{- end }}'$(CR_FILE)
56
57
@# Sanity-check: every cozystack patch MUST end up in the file. If the
57
58
@# hand-merge step moved or renamed an anchor (developerConfiguration:,
58
59
@# - VMExport, featureGates:, evictionStrategy:) the sed silently no-ops and the chart
@@ -88,3 +89,4 @@ update:
88
89
@grep -q '{{- $$staticDisabledFeatureGates := '$(CR_FILE)|| { echo"ERROR: marker '{{- \$$staticDisabledFeatureGates := ' missing from the guard header — the disabledFeatureGates block below references it and the render would fail. Restore the header block at the top of $(CR_FILE)">&2;exit 1; }
89
90
@grep -q '{{- with .Values.permittedHostDevices }}'$(CR_FILE)|| { echo"ERROR: directive '{{- with .Values.permittedHostDevices }}' not inserted — restore the 'evictionStrategy:' anchor in $(CR_FILE) and re-run">&2;exit 1; }
90
91
@grep -q '{{- with .Values.mediatedDevicesConfiguration }}'$(CR_FILE)|| { echo"ERROR: directive '{{- with .Values.mediatedDevicesConfiguration }}' not inserted — restore the 'evictionStrategy:' anchor in $(CR_FILE) and re-run">&2;exit 1; }
92
+
@grep -q '{{- with .Values.migrations }}'$(CR_FILE)|| { echo"ERROR: directive '{{- with .Values.migrations }}' not inserted — restore the 'evictionStrategy:' anchor in $(CR_FILE) and re-run">&2;exit 1; }
0 commit comments