Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
Signed-off-by: PrimalPimmy <[email protected]>
  • Loading branch information
PrimalPimmy committed Jul 25, 2024
1 parent 62ea4dc commit deb40c6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions controllers/pkg/reconcilers/spire-bootstrap/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package spirebootstrap
import (
"context"
"encoding/base64"
"flag"
"fmt"
"strings"
"time"
Expand All @@ -28,7 +27,6 @@ import (
reconcilerinterface "github.com/nephio-project/nephio/controllers/pkg/reconcilers/reconciler-interface"
"github.com/nephio-project/nephio/controllers/pkg/resource"
vaultClient "github.com/nephio-project/nephio/controllers/pkg/vault-client"
"github.com/spiffe/go-spiffe/v2/workloadapi"
"gopkg.in/yaml.v2"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -124,20 +122,6 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu

vaultAddr := vaultconfigMap.Data["VAULT_ADDR"]

fmt.Println("ADDDRRRR: ", vaultAddr)

workloadAPIAddr := flag.String("workload-api-addr", "", "Workload API Address")
flag.Parse()

var opts []workloadapi.ClientOption
if *workloadAPIAddr != "" {
opts = append(opts, workloadapi.WithAddr(*workloadAPIAddr))
}

fmt.Println("Watching...")
err = workloadapi.WatchX509Context(context.Background(), resource.Watcher{}, opts...)
fmt.Errorf("Error: %v ", err)

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

0 comments on commit deb40c6

Please sign in to comment.