Skip to content

Commit

Permalink
git: Check feature status from internal value
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
  • Loading branch information
Paulo Gomes committed Nov 2, 2022
1 parent ade77ec commit a079f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ func (r *GitRepositoryReconciler) SetupWithManagerAndOptions(mgr ctrl.Manager, o
r.requeueDependency = opts.DependencyRequeueInterval

if r.features == nil {
r.features = map[string]bool{}
r.features = features.FeatureGates()
}

// Check and enable gated features.
if oc, _ := features.Enabled(features.OptimizedGitClones); oc {
if oc, _ := r.features[features.OptimizedGitClones]; oc {
r.features[features.OptimizedGitClones] = true
}

Expand Down

0 comments on commit a079f52

Please sign in to comment.