Skip to content

Commit ae5132d

Browse files
authored
fix: hypervisor tmpl can not override bug (#280)
1 parent 81fca7d commit ae5132d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/utils/compose.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ func AddTFHypervisorConfAfterTemplate(ctx context.Context, spec *v1.PodSpec, poo
281281
Name: constants.TFContainerVector,
282282
},
283283
}
284-
} else if len(spec.Containers) != 1 {
284+
}
285+
if !enableVector && len(spec.Containers) != 1 {
285286
spec.Containers = []v1.Container{
286287
{
287288
Name: constants.TFContainerNameHypervisor,

0 commit comments

Comments
 (0)