Skip to content

Commit

Permalink
Mid testing-3
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 9, 2024
1 parent 8dbb6fa commit 2eeda8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/pkg/reconcilers/spire-bootstrap/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
log.Error(err, "Error retrieving secret:")
}

fmt.Printf("Secret retrieved: %v\n", kubeconfig)

decodedKubeConfig, err := base64.StdEncoding.DecodeString(kubeconfig)
if err != nil {
fmt.Println("Error decoding base64:", err)
}

fmt.Printf("Secret retrieved: %v\n", decodedKubeConfig)

Client, err := createK8sClientFromKubeconfig(decodedKubeConfig)

createK8sResources(Client)
Expand Down

0 comments on commit 2eeda8d

Please sign in to comment.