Skip to content

Commit 224600d

Browse files
committed
Add new featuregate
1 parent edeb4f1 commit 224600d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkg/config/feature_gates.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const (
1919
EnableIPTargetType Feature = "EnableIPTargetType"
2020
SubnetsClusterTagCheck Feature = "SubnetsClusterTagCheck"
2121
NLBHealthCheckTimeout Feature = "NLBHealthCheckTimeout"
22+
ManageSecurityGroups Feature = "ManageSecurityGroups"
2223
)
2324

2425
type FeatureGates interface {
@@ -54,6 +55,7 @@ func NewFeatureGates() FeatureGates {
5455
EnableIPTargetType: true,
5556
SubnetsClusterTagCheck: true,
5657
NLBHealthCheckTimeout: true,
58+
ManageSecurityGroups: true,
5759
},
5860
}
5961
}

pkg/service/model_build_target_group.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ func (t *defaultModelBuildTask) buildHealthCheckNetworkingIngressRules(trafficSo
603603

604604
func (t *defaultModelBuildTask) buildManageSecurityGroupRulesFlag(_ context.Context) (bool, error) {
605605
var rawEnabled bool
606+
if !t.featureGates.Enabled(config.ManageSecurityGroups) {
607+
return false, nil
608+
}
606609
exists, err := t.annotationParser.ParseBoolAnnotation(annotations.SvcLBSuffixManageSGRules, &rawEnabled, t.service.Annotations)
607610
if err != nil {
608611
return true, err

0 commit comments

Comments
 (0)