From f1b25fb4004101c26303f934d990218ff8476f8f Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Fri, 19 Apr 2024 12:49:33 -0500 Subject: [PATCH] update cron yml so that script can properly reference config (#61) * update comments on backfill scripts to give context of what previous scripts where used for * adding comments for context on old scripts * update backfill script in ruby * update env variables to use Rails.app.credentials. attempt at cron job kubernetes template * Update cron_sync.yml * Update user_group_membership_classification_backfill.py * update panoptes_membership_client.rb to create insert query using array.new vs times.map per hound * adding a more descriptive comment insert query * add manual sync * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update .github/workflows/manual_corp_user_group_sync.yml Co-authored-by: Zach Wolfenbarger * Update manual_corp_user_group_sync.yml * Update manual_corp_user_group_sync.yml * update cron yml to properly pull config --------- Co-authored-by: Zach Wolfenbarger --- kubernetes/corp_user_groups_cron_sync.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubernetes/corp_user_groups_cron_sync.yml b/kubernetes/corp_user_groups_cron_sync.yml index e90b276..aec2ffb 100644 --- a/kubernetes/corp_user_groups_cron_sync.yml +++ b/kubernetes/corp_user_groups_cron_sync.yml @@ -23,6 +23,9 @@ spec: secretKeyRef: name: eras-production key: rails-master-key - command: ['ruby', './scripts/user_group_membership_classification_backfill.rb'] + command: + - /bin/sh + - -c + - cd scripts; ruby user_group_membership_classification_backfill.rb restartPolicy: Never backoffLimit: 2