**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
"sshKeySecret": None,
                        "credentialsSecret": None,
                        "knownHosts": None,
                    }
                },
            },
            show_only=["templates/pod-template-file.yaml"],
            chart_dir=self.temp_chart_dir,
        )
        assert re.search("Pod", docs[0]["kind"])
        assert {
            "name": "git-sync-test",
            "securityContext": {"runAsUser": 65533},
            "image": "test-registry/test-repo:test-tag",
            "imagePullPolicy": "Always",
            "env": [
                {"name": "GIT_SYNC_REV", "value": "HEAD"},
                {"name": "GIT_SYNC_BRANCH", "value": "test-branch"},
                {"name": "GIT_SYNC_REPO", "value": "https://github.com/apache/airflow.git"},
                {"name": "GIT_SYNC_DEPTH", "value": "1"},
                {"name": "GIT_SYNC_ROOT", "value": "/git"},
                {"name": "GIT_SYNC_DEST", "value": "repo"},
                {"name": "GIT_SYNC_ADD_USER", "value": "true"},
                {"name": "GIT_SYNC_WAIT", "value": "66"},
                {"name": "GIT_SYNC_MAX_SYNC_FAILURES", "value": "70"},
                {"name": "GIT_SYNC_ONE_TIME", "value": "true"},
            ],
            "volumeMounts": [{"mountPath": "/git", "name": "dags"}],
        } == jmespath.search("spec.initContainers[0]", docs[0])
    def test_should_not_add_init_container_if_dag_persistence_is_true(self):