Merge pull request #1009 from dod-ccpo/bugfix-cd-migrations

Update the k8s config directory in the migration script.
This commit is contained in:
dandds
2019-08-08 12:08:22 -04:00
committed by GitHub

View File

@@ -11,7 +11,7 @@ if [ -z "${MIGRATION_TIMEOUT+is_set}" ]; then
fi fi
echo "Creating job..." echo "Creating job..."
envsubst < k8s/shared/migration.yaml | $K8S_CMD -n atat apply -f - envsubst < deploy/shared/migration.yaml | $K8S_CMD -n atat apply -f -
echo "Wait for job to finish or timeout..." echo "Wait for job to finish or timeout..."
JOB_SUCCESS=$(${K8S_CMD} -n atat wait --for=condition=complete --timeout=${MIGRATION_TIMEOUT} job/migration) JOB_SUCCESS=$(${K8S_CMD} -n atat wait --for=condition=complete --timeout=${MIGRATION_TIMEOUT} job/migration)