Skip to content

Commit 2431319

Browse files
committed
Power VS: Disable SNAT when specifying imageContentSources
When doing a disconnected deploy we'll need to disable SNAT
1 parent 36bbe11 commit 2431319

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/asset/manifests/powervs/cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ func GenerateClusterAssets(installConfig *installconfig.InstallConfig, clusterID
176176
}
177177

178178
powerVSCluster.Spec.DHCPServer.DNSServer = &dnsServerIP
179+
// Disable SNAT for disconnected scenario.
180+
powerVSCluster.Spec.DHCPServer.Snat = ptr.To(len(installConfig.Config.DeprecatedImageContentSources) == 0 && len(installConfig.Config.ImageDigestSources) == 0)
179181
}
180182

181183
// If a VPC was specified, pass all subnets in it to cluster API

0 commit comments

Comments
 (0)