Skip to content

Commit

Permalink
fix(securityGroup): create group whit flag extraSecurityGroupRule
Browse files Browse the repository at this point in the history
  • Loading branch information
sebglon committed Aug 12, 2024
1 parent 0403afb commit 55df60c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/osccluster_securitygroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ func reconcileSecurityGroup(ctx context.Context, clusterScope *scope.ClusterScop
securityGroupId := securityGroupsRef.ResourceMap[securityGroupName]

if !Contains(securityGroupIds, securityGroupId) && tag == nil {

if extraSecurityGroupRule {
if extraSecurityGroupRule && len(securityGroupsRef) == len(securityGroupsSpec)) {
clusterScope.V(4).Info("Extra Security Group Rule activated")
} else {
clusterScope.V(2).Info("Create the desired securitygroup", "securityGroupName", securityGroupName)
Expand Down

0 comments on commit 55df60c

Please sign in to comment.