Skip to content

Commit 152c874

Browse files
authored
Merge pull request #1494 from k8s-infra-cherrypick-robot/cherry-pick-1492-to-release-0.7
[release-0.7] fix: fix typo of worker rules and controller rules
2 parents 8278a85 + cef7a1b commit 152c874

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)