Skip to content

Task runner CronJob bucket config incomplete

Summary

While present in the Deployment, task-runner CronJob is missing the definitions of the TERRAFORM_STATE_BUCKET_NAME and EXTERNAL_DIFFS_BUCKET_NAME environment variables.

Steps to reproduce

Run backups with the cron jobs, note that custom bucket names are not configured and backup is skipped.

Current behavior

Backup of the two buckets is skipped in the CronJob.

Expected behavior

All buckets should be backed up.

Versions

Present in master

Solution

Add this to the cronjob envs.

            - name: EXTERNAL_DIFFS_BUCKET_NAME
              value: {{ .Values.global.appConfig.externalDiffs.bucket }}
            - name: TERRAFORM_STATE_BUCKET_NAME
              value: {{ .Values.global.appConfig.terraformState.bucket }}