Skip to content

Commit cef7a1b

Browse files
jichenjck8s-infra-cherrypick-robot
authored andcommitted
fix: fix typo of worker rules and controller rules
1 parent 8278a85 commit cef7a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/services/networking/securitygroups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (s *Service) generateDesiredSecGroups(openStackCluster *infrav1.OpenStackCl
132132

133133
if openStackCluster.Spec.Bastion != nil && openStackCluster.Spec.Bastion.Enabled {
134134
controlPlaneRules = append(controlPlaneRules, GetSGControlPlaneSSH(secBastionGroupID)...)
135-
controlPlaneRules = append(controlPlaneRules, GetSGWorkerSSH(secBastionGroupID)...)
135+
workerRules = append(workerRules, GetSGWorkerSSH(secBastionGroupID)...)
136136

137137
desiredSecGroups[bastionSuffix] = infrav1.SecurityGroup{
138138
Name: secGroupNames[bastionSuffix],

0 commit comments

Comments
 (0)