**What happened**:

When you have `dag.persistence` enabled and a `dag.gitSync.sshKeySecret` set, the gitSync container isn't added to the pod_template_file for k8s workers, as expected. However, `volumes` for it still are and maybe worse, the ssh key is mounted into the Airflow worker.

**What you expected to happen**:

When using `dag.persistence` and a `dag.gitSync.sshKeySecret`, nothing gitsync related is added to the k8s workers.

**How to reproduce it**:

Deploy the helm chart with `dag.persistence` enabled and a `dag.gitSync.sshKeySecret`.

e.g:
```
dags:
  persistence:
    enabled: true
  gitSync:
    enabled: true
    repo: {some_repo}
    sshKeySecret: my-gitsync-secret
extraSecrets:
  'my-gitsync-secret':
    data: |
      gitSshKey: {base_64_private_key}
```

**Anything else we need to know**:

After a quick look at CeleryExecutor workers, I don't think they are impacted, but worth double checking.
chart/tests/test_pod_template_file.py
docs = render_chart(
            values={"dags": {"persistence": {"enabled": True, "existingClaim": "test-claim"}}},
            show_only=["templates/pod-template-file.yaml"],
            chart_dir=self.temp_chart_dir,
        )
        assert {"name": "dags", "persistentVolumeClaim": {"claimName": "test-claim"}} in jmespath.search(
            "spec.volumes", docs[0]
        )
    def test_should_use_empty_dir_for_gitsync_without_persistence(self):
        docs = render_chart(
            values={"dags": {"gitSync": {"enabled": True}}},
            show_only=["templates/pod-template-file.yaml"],
            chart_dir=self.temp_chart_dir,
        )
        assert {"name": "dags", "emptyDir": {}} in jmespath.search("spec.volumes", docs[0])
    @parameterized.expand(
        [
            ({"enabled": False}, {"emptyDir": {}}),
            ({"enabled": True}, {"persistentVolumeClaim": {"claimName": "RELEASE-NAME-logs"}}),
            (
                {"enabled": True, "existingClaim": "test-claim"},
                {"persistentVolumeClaim": {"claimName": "test-claim"}},
            ),
        ]
    )
    def test_logs_persistence_changes_volume(self, log_persistence_values, expected):