Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yosefpor committed Feb 28, 2022
1 parent be67be3 commit f7804ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/namespace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (r *NamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
//tmp
logger.Info("token data", "token", string(tokenData))
logger.Info("token meta", "name", name, "uid", uid, "ref.Name", ref.Name, "ref.UID", ref.UID)
if name == ref.Name && uid == string(ref.UID) && len(tokenData) > 0 {
if name == sa.Name && uid == string(sa.UID) && len(tokenData) > 0 {
// found token, the first token found is used
token = string(tokenData)
logger.Info("Found token", "token", token)
Expand Down

0 comments on commit f7804ea

Please sign in to comment.