From 0eecd2cdff445c58a2a644802a78021551bc97f6 Mon Sep 17 00:00:00 2001 From: PrimalPimmy Date: Fri, 7 Jun 2024 01:14:06 +0530 Subject: [PATCH] minor fix Signed-off-by: PrimalPimmy --- controllers/pkg/reconcilers/spire-bootstrap/reconciler.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/controllers/pkg/reconcilers/spire-bootstrap/reconciler.go b/controllers/pkg/reconcilers/spire-bootstrap/reconciler.go index ab868c1e..d38acc3f 100644 --- a/controllers/pkg/reconcilers/spire-bootstrap/reconciler.go +++ b/controllers/pkg/reconcilers/spire-bootstrap/reconciler.go @@ -9,6 +9,7 @@ import ( "encoding/pem" "fmt" "math/big" + "strings" "time" "github.com/nephio-project/nephio/controllers/pkg/cluster" @@ -32,8 +33,9 @@ func init() { const ( clusterNameKey = "nephio.org/cluster-name" + nephioAppKey = "nephio.org/app" remoteNamespaceKey = "nephio.org/remote-namespace" - syncApp = "tobeinstalledonremotecluster" + syncApp = "tobeinstalledonremotecluster" bootstrapApp = "bootstrap" ) @@ -72,7 +74,7 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu return reconcile.Result{}, nil } - if cr.GetAnnotations()[nephioAppKey] == syncApp && + if cr.GetAnnotations()[nephioAppKey] == syncApp && cr.GetAnnotations()[clusterNameKey] != "" && cr.GetAnnotations()[clusterNameKey] != "mgmt" { log.Info("reconcile secret")