apiVersion: batch/v1
kind: CronJob
metadata:
  name: code-mirror-sync-daily
spec:
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: code-mirror-sync
              env:
                - name: INVESTIBOOK_CODE_CONTEXT_CACHE_DIR
                  value: /code-cache
              volumeMounts:
                - name: code-cache
                  mountPath: /code-cache
          volumes:
            - name: code-cache
              persistentVolumeClaim:
                claimName: investibook-code-cache
