message: run storage run crons via lagoon cron system
diff: @@ -88,7 +88,7 @@ objects:
  - name: SERVICE_NAME
  value: ${SERVICE_NAME}
  - name: CRONJOBS
  - value: ${CRONJOBS}
  + value: "5 */12 * * * /lagoon/cronjob.sh /calculate-storage.sh"
  volumeMounts:
  - mountPath: /var/run/secrets/lagoon/sshkey/
  name: lagoon-sshkey
  @@ -100,38 +100,3 @@ objects:
  test: false
  triggers:
  - type: ConfigChange
  \ No newline at end of file
  -- apiVersion: batch/v2alpha1
  - kind: CronJob
  - metadata:
  - name: cronjob-storage-calculator
  - spec:
  - successfulJobsHistoryLimit: 1
  - failedJobsHistoryLimit: 1
  - schedule: "5 */12 * * *"
  - concurrencyPolicy: Forbid
  - jobTemplate:
  - spec:
  - template:
  - metadata:
  - annotations:
  - alpha.image.policy.openshift.io/resolve-names: "*"
  - labels:
  - cronjob: storage-calculator
  - parent: cronjob-storage-calculator
  - spec:
  - containers:
  - - name: storage-calculator
  - image: ${REGISTRY}/${OPENSHIFT_PROJECT}/${SERVICE_NAME}:latest
  - command:
  - - /lagoon/cronjob.sh
  - - "/calculate-storage.sh"
  - envFrom:
  - - configMapRef:
  - name: lagoon-env
  - env:
  - - name: JWTSECRET
  - valueFrom:
  - secretKeyRef:
  - name: jwtsecret
  - key: JWTSECRET
  - restartPolicy: OnFailure
  \ No newline at end of file
  