Skip to content

Commit 692b290

Browse files
add option for aditional cluster network
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent b96aa4b commit 692b290

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/dvp-static-cluster/charts/infra/templates/_helpers.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ group: {{ $prefix }}
1616
{{- $ctx := index . 0 -}}
1717
{{- $name := index . 1 -}}
1818
{{- $cfg := index . 2 -}}
19+
{{- $clusterNetworkName := index $ctx.Values "networkConfig" | default dict | index "clusterNetworkName" -}}
1920
---
2021
apiVersion: virtualization.deckhouse.io/v1alpha2
2122
kind: VirtualMachine
@@ -35,8 +36,10 @@ spec:
3536
{{- end }}
3637
networks:
3738
- type: Main
39+
{{- if $clusterNetworkName }}
3840
- type: ClusterNetwork
39-
name: cn-4006-for-e2e-test
41+
name: {{ $clusterNetworkName }}
42+
{{- end }}
4043
bootloader: {{ $ctx.Values.image.bootloader }}
4144
liveMigrationPolicy: PreferForced
4245
cpu:

0 commit comments

Comments
 (0)