Skip to content

Commit

Permalink
testing more and more stuff stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Feb 20, 2024
1 parent 718db40 commit 20b8dd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cluster

import (
"context"
"fmt"
"net/url"
"runtime"
"strings"
Expand Down Expand Up @@ -144,9 +145,13 @@ func (c *Cluster) startStorage(ctx context.Context) error {
// start listening on the kine socket as an etcd endpoint, or return the external etcd endpoints
etcdConfig, err := endpoint.Listen(ctx, c.config.Datastore)
if err != nil {
fmt.Println("CAIU AQUI DENTRO FON FON FON FON")
return errors.Wrap(err, "creating storage endpoint")
}

logrus.Println("NAO CAIU AQUI DENTRO FON FON FON FON")
logrus.Println(etcdConfig)

// Persist the returned etcd configuration. We decide if we're doing leader election for embedded controllers
// based on what the kine wrapper tells us about the datastore. Single-node datastores like sqlite don't require
// leader election, while basically all others (etcd, external database, etc) do since they allow multiple servers.
Expand Down

0 comments on commit 20b8dd5

Please sign in to comment.