Skip to content

Commit

Permalink
Create the bootstrap entry appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
jrovira-kumori committed Feb 16, 2024
1 parent 7a3bea8 commit acd594d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/drivers/nats/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit acd594d

Please sign in to comment.