From 9f318636a032d995f0d215069a4dce9402a958c6 Mon Sep 17 00:00:00 2001 From: Travis Bischel Date: Thu, 3 Aug 2023 07:37:51 -0600 Subject: [PATCH] kfake: initialize sasls map to ensure Superuser works Closes #528 --- pkg/kfake/cluster.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kfake/cluster.go b/pkg/kfake/cluster.go index 9e127e07..8ba6467a 100644 --- a/pkg/kfake/cluster.go +++ b/pkg/kfake/cluster.go @@ -77,6 +77,8 @@ func NewCluster(opts ...Opt) (c *Cluster, err error) { minSessionTimeout: 6 * time.Second, maxSessionTimeout: 5 * time.Minute, + + sasls: make(map[struct{ m, u string }]string), } for _, opt := range opts { opt.apply(&cfg)