Skip to content

Commit

Permalink
fix: consumer provisions feature flags
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
Cali0707 committed Aug 20, 2024
1 parent 2263a6b commit a38f944
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions control-plane/pkg/reconciler/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"errors"
"fmt"
"knative.dev/eventing/pkg/apis/feature"
"strings"

"go.uber.org/zap"
Expand Down Expand Up @@ -137,6 +138,9 @@ func (r *Reconciler) reconcileContractResource(ctx context.Context, c *kafkainte
Auth: nil, // Auth will be added by reconcileAuth
CloudEventOverrides: reconcileCEOverrides(c),
Reference: userFacingResourceRef,
FeatureFlags: &contract.FeatureFlags{
EnableEventTypeAutocreate: feature.FromContext(ctx).IsEnabled(feature.EvenTypeAutoCreate),
},
}

if err := r.reconcileAuth(ctx, c, resource); err != nil {
Expand Down

0 comments on commit a38f944

Please sign in to comment.