Skip to content

Commit 191419b

Browse files
author
eliranb
committed
Refactor config map data hash calculation in lightrunjavaagent_controller.go for improved clarity and maintainability
1 parent 1d5c1f2 commit 191419b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/lightrunjavaagent_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (r *LightrunJavaAgentReconciler) reconcileDeployment(ctx context.Context, l
242242
}
243243
return r.errorStatus(ctx, lightrunJavaAgent, err)
244244
}
245-
cmDataHash := hash(cm.Data["config"] + cm.Data["metadata"])
245+
cmDataHash := configMapDataHash(cm.Data)
246246

247247
// Server side apply
248248
log.V(2).Info("Patching deployment, SSA", "Deployment", lightrunJavaAgent.Spec.DeploymentName, "LightunrJavaAgent", lightrunJavaAgent.Name)

0 commit comments

Comments
 (0)