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 authored and outscale-hmi committed Aug 21, 2024
1 parent b9910f2 commit bee800c
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.ResourceMap) == 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 bee800c

Please sign in to comment.