Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
  • Loading branch information
PrimalPimmy committed Jun 6, 2024
1 parent 995803b commit 0eecd2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/pkg/reconcilers/spire-bootstrap/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"encoding/pem"
"fmt"
"math/big"
"strings"
"time"

"github.com/nephio-project/nephio/controllers/pkg/cluster"
Expand All @@ -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"
)

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 0eecd2c

Please sign in to comment.