diff --git a/pkg/drivers/nats/new.go b/pkg/drivers/nats/new.go index ce6b9326..de26211a 100644 --- a/pkg/drivers/nats/new.go +++ b/pkg/drivers/nats/new.go @@ -173,8 +173,8 @@ func newBackend(ctx context.Context, connection string, tlsInfo tls.Config, lega // Kubernetes revision number 0 is illegal // Add a boostrap key and remove it to make the bucket revision != 0 if backend.kv.BucketRevision() == 0 { - backend.kv.Create(ctx, "", []byte{}) - backend.kv.Delete(ctx, "") + backend.kv.nkv.Create(ctx, "bootstrap", []byte{}) + backend.kv.nkv.Delete(ctx, "bootstrap") } if ns != nil {