Skip to content

Commit 1203d54

Browse files
Merge pull request #8530 from mjturek/add-missing-private-ports
OCPBUGS-34969: Power VS: Add ports needed for private clusters to security group
2 parents aa2c5c6 + b98a7b6 commit 1203d54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/infrastructure/powervs/clusterapi/powervs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ func findMissingSecurityGroupRules(ctx context.Context, in clusterapi.InfraReady
192192
foundPorts := sets.Set[int64]{}
193193
wantedPorts := sets.New[int64](22, 10258, 22623)
194194

195+
if in.InstallConfig.Config.Publish == types.InternalPublishingStrategy {
196+
wantedPorts = wantedPorts.Insert(6443, 443, 5000)
197+
}
198+
195199
existingRules, err := in.InstallConfig.PowerVS.ListSecurityGroupRules(ctx, vpcID)
196200
if err != nil {
197201
return nil, fmt.Errorf("failed to list security group rules: %w", err)

0 commit comments

Comments
 (0)