Skip to content

Commit

Permalink
Added missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjohansen committed Jul 17, 2023
1 parent 5fb51ca commit cf22797
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/reconciler/broker/resources/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type DispatcherArgs struct {
BrokerUrlSecretKey string
BrokerIngressURL *apis.URL
Subscriber *duckv1.Addressable
DLX bool
Configs reconcilersource.ConfigAccessor
ResourceRequirements corev1.ResourceRequirements
}
Expand Down Expand Up @@ -150,6 +151,13 @@ func MakeDispatcherDeployment(args *DispatcherArgs) *appsv1.Deployment {
Value: *args.Subscriber.CACerts,
})
}
if args.DLX {
envs = append(envs,
corev1.EnvVar{
Name: "DLX",
Value: "true",
})
}
// Default requirements only if none of the requirements are set through annotations
if len(args.ResourceRequirements.Limits) == 0 && len(args.ResourceRequirements.Requests) == 0 {
// This resource requests and limits comes from performance testing 1500msgs/s with a parallelism of 1000
Expand Down

0 comments on commit cf22797

Please sign in to comment.