Skip to content

Commit 8de9282

Browse files
committed
fix: revert back the optimisation for sync to keep readability
Signed-off-by: Giuseppe Chiesa <mail@giuseppechiesa.it>
1 parent d678dca commit 8de9282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/podlabels/abstract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (r *podLabelsReconciler) getTenant(ctx context.Context, namespacedName type
9191
func (r *podLabelsReconciler) sync(available map[string]string, tenantSpec map[string]string) map[string]string {
9292
if tenantSpec != nil {
9393
if available == nil {
94-
return tenantSpec
94+
available = tenantSpec
9595
} else {
9696
for key, value := range tenantSpec {
9797
if available[key] != value {

0 commit comments

Comments
 (0)