Skip to content

Commit 88a1c3f

Browse files
committed
reduces verbosity for featuregate names
1 parent 59c445a commit 88a1c3f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pkg/featuregate/features.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
package featuregate
1818

1919
const (
20-
// FeatureCARMv2 is the name of the CARMv2 feature.
21-
FeatureCARMv2 = "CARMv2"
20+
// CARMv2 is the name of the CARMv2 feature.
21+
CARMv2 = "CARMv2"
2222
)
2323

2424
// defaultACKFeatureGates is a map of feature names to Feature structs
2525
// representing the default feature gates for ACK controllers.
2626
var defaultACKFeatureGates = FeatureGates{
2727
// Set feature gates here
28-
FeatureCARMv2: {Stage: Alpha, Enabled: false},
28+
CARMv2: {Stage: Alpha, Enabled: false},
2929
}
3030

3131
// FeatureStage represents the development stage of a feature.

pkg/runtime/adoption_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (r *adoptionReconciler) reconcile(ctx context.Context, req ctrlrt.Request)
120120
acctID, needCARMLookup := r.getOwnerAccountID(res)
121121

122122
var roleARN ackv1alpha1.AWSResourceName
123-
if r.cfg.FeatureGates.IsEnabled(featuregate.FeatureCARMv2) {
123+
if r.cfg.FeatureGates.IsEnabled(featuregate.CARMv2) {
124124
teamID := r.getTeamID(res)
125125
if teamID != "" {
126126
// The user is specifying a namespace that is annotated with a team ID.

pkg/runtime/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func (r *resourceReconciler) Reconcile(ctx context.Context, req ctrlrt.Request)
237237
acctID, needCARMLookup := r.getOwnerAccountID(desired)
238238

239239
var roleARN ackv1alpha1.AWSResourceName
240-
if r.cfg.FeatureGates.IsEnabled(featuregate.FeatureCARMv2) {
240+
if r.cfg.FeatureGates.IsEnabled(featuregate.CARMv2) {
241241
teamID := r.getTeamID(desired)
242242
if teamID != "" {
243243
// The user is specifying a namespace that is annotated with a team ID.

0 commit comments

Comments
 (0)