File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,8 @@ func (m *Master) Generate(dependencies asset.Parents) error {
557
557
// The maximum number of networks supported on ServiceNetwork is two, one IPv4 and one IPv6 network.
558
558
// The cluster-network-operator handles the validation of this field.
559
559
// Reference: https://github.com/openshift/cluster-network-operator/blob/fc3e0e25b4cfa43e14122bdcdd6d7f2585017d75/pkg/network/cluster_config.go#L45-L52
560
- if ic .Platform .Name () == openstacktypes .Name && len (installConfig .Config .ServiceNetwork ) == 2 {
560
+ if ic .Networking != nil && len (ic .Networking .ServiceNetwork ) == 2 &&
561
+ (ic .Platform .Name () == openstacktypes .Name || ic .Platform .Name () == vspheretypes .Name ) {
561
562
// Only configure kernel args for dual-stack clusters.
562
563
ignIPv6 , err := machineconfig .ForDualStackAddresses ("master" )
563
564
if err != nil {
Original file line number Diff line number Diff line change @@ -298,7 +298,8 @@ func (w *Worker) Generate(dependencies asset.Parents) error {
298
298
// The maximum number of networks supported on ServiceNetwork is two, one IPv4 and one IPv6 network.
299
299
// The cluster-network-operator handles the validation of this field.
300
300
// Reference: https://github.com/openshift/cluster-network-operator/blob/fc3e0e25b4cfa43e14122bdcdd6d7f2585017d75/pkg/network/cluster_config.go#L45-L52
301
- if ic .Platform .Name () == openstacktypes .Name && len (installConfig .Config .ServiceNetwork ) == 2 {
301
+ if ic .Networking != nil && len (ic .Networking .ServiceNetwork ) == 2 &&
302
+ (ic .Platform .Name () == openstacktypes .Name || ic .Platform .Name () == vspheretypes .Name ) {
302
303
// Only configure kernel args for dual-stack clusters.
303
304
ignIPv6 , err := machineconfig .ForDualStackAddresses ("worker" )
304
305
if err != nil {
You can’t perform that action at this time.
0 commit comments