diff --git a/pkg/featuregate/features.go b/pkg/featuregate/features.go index 391b513..4e1bc5a 100644 --- a/pkg/featuregate/features.go +++ b/pkg/featuregate/features.go @@ -17,15 +17,15 @@ package featuregate const ( - // FeatureCARMv2 is the name of the CARMv2 feature. - FeatureCARMv2 = "CARMv2" + // CARMv2 is the name of the CARMv2 feature. + CARMv2 = "CARMv2" ) // defaultACKFeatureGates is a map of feature names to Feature structs // representing the default feature gates for ACK controllers. var defaultACKFeatureGates = FeatureGates{ // Set feature gates here - FeatureCARMv2: {Stage: Alpha, Enabled: false}, + CARMv2: {Stage: Alpha, Enabled: false}, } // FeatureStage represents the development stage of a feature. diff --git a/pkg/runtime/adoption_reconciler.go b/pkg/runtime/adoption_reconciler.go index 4c71228..4c5f6fd 100644 --- a/pkg/runtime/adoption_reconciler.go +++ b/pkg/runtime/adoption_reconciler.go @@ -120,7 +120,7 @@ func (r *adoptionReconciler) reconcile(ctx context.Context, req ctrlrt.Request) acctID, needCARMLookup := r.getOwnerAccountID(res) var roleARN ackv1alpha1.AWSResourceName - if r.cfg.FeatureGates.IsEnabled(featuregate.FeatureCARMv2) { + if r.cfg.FeatureGates.IsEnabled(featuregate.CARMv2) { teamID := r.getTeamID(res) if teamID != "" { // The user is specifying a namespace that is annotated with a team ID. diff --git a/pkg/runtime/reconciler.go b/pkg/runtime/reconciler.go index d074613..fc18165 100644 --- a/pkg/runtime/reconciler.go +++ b/pkg/runtime/reconciler.go @@ -237,7 +237,7 @@ func (r *resourceReconciler) Reconcile(ctx context.Context, req ctrlrt.Request) acctID, needCARMLookup := r.getOwnerAccountID(desired) var roleARN ackv1alpha1.AWSResourceName - if r.cfg.FeatureGates.IsEnabled(featuregate.FeatureCARMv2) { + if r.cfg.FeatureGates.IsEnabled(featuregate.CARMv2) { teamID := r.getTeamID(desired) if teamID != "" { // The user is specifying a namespace that is annotated with a team ID.