From 0cea140143de379a6407c276ad8147008f740e08 Mon Sep 17 00:00:00 2001 From: Sebastien BOUAT Date: Tue, 20 Feb 2024 14:26:00 +0100 Subject: [PATCH] Fix bug kubi projects status not updated --- .dockerignore | 2 +- internal/controller/controller.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 4b249cf..f1c6130 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,4 +10,4 @@ env.* *.csv /tmp/* /bin/* -/build/* +#/build/* diff --git a/internal/controller/controller.go b/internal/controller/controller.go index 2459576..5a9f270 100644 --- a/internal/controller/controller.go +++ b/internal/controller/controller.go @@ -93,7 +93,7 @@ func (c *Controller) LocalSyncProjectsMembers() error { return err } for _, project := range projects.Items { - if project.Status.Name == kubiv1.ProjectStatusCreated { + if project.Labels["creator"] == "kubi" { members, err := c.ldap.Search(project.Spec.SourceDN) if err != nil { klog.Errorf("Could not find ldap members for %s : %s", project.Spec.SourceDN, err)