Skip to content

Commit 144e9c3

Browse files
Merge pull request openshift#8798 from mjturek/powervs-gate-disc
no-jira: PowerVS: Block disconnected deploys in 4.17
2 parents fe126ca + 02bf5c4 commit 144e9c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/asset/manifests/powervs/cluster.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ 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)
179+
// TODO(mjturek): Restore once work is finished in 4.18 for disconnected scenario.
180+
if !(len(installConfig.Config.DeprecatedImageContentSources) == 0 && len(installConfig.Config.ImageDigestSources) == 0) {
181+
return nil, fmt.Errorf("deploying a disconnected cluster directly in 4.17 is not supported for Power VS. Please deploy disconnected in 4.16 and upgrade to 4.17")
182+
}
181183
}
182184

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

0 commit comments

Comments
 (0)