Re-deploy in K8s in case of only configmap or secrets change

I want to redeploy an application in k8s using GitOps(Kubernetes agent) in case of an only config Map or Secrets change, how gitops will understand to restart the deployment?

Scenario - If one app (deployment) is running and I have to modify configmap yaml file in Gitlab and it will automatically understand and sync the updated values and applied to k8s but the deployment will not restart as we are not modifying in Deployment Yaml Files, so how config map will take effect?