Skip to content

Commit

Permalink
log testing
Browse files Browse the repository at this point in the history
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
  • Loading branch information
PrimalPimmy committed Jul 17, 2024
1 parent 2e050cb commit 388f9bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/pkg/reconcilers/spire-bootstrap/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,28 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
return ctrl.Result{}, errors.Wrap(err, msg)
}

fmt.Println("TESTTT 3333333")

vaultAddr := "http://10.146.0.21:8200"

jwtSVID, err := resource.GetJWT(ctx)
if err != nil {
log.Error(err, "Unable to get jwtSVID")
}

fmt.Println("TESTTT 4444444")

clientToken, err := vaultClient.AuthenticateToVault(vaultAddr, jwtSVID.Marshal(), "dev")
if err != nil {
log.Error(err, "Error authenticating to Vault:")
}

fmt.Println("TESTTT 5555555")

log.Info("Successfully authenticated to Vault.", "Client token:", clientToken)

fmt.Println(clientToken)

config := vault.DefaultConfig()
config.Address = vaultAddr
client, err := vault.NewClient(config)
Expand Down

0 comments on commit 388f9bb

Please sign in to comment.