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")