Skip to content

Update the ECR cron job to support the node architecture#30

Merged
MarceloRGonc merged 2 commits into
mainfrom
mg/update-job
May 11, 2026
Merged

Update the ECR cron job to support the node architecture#30
MarceloRGonc merged 2 commits into
mainfrom
mg/update-job

Conversation

@MarceloRGonc
Copy link
Copy Markdown
Contributor

Fixes OPS-4266

Copilot AI review requested due to automatic review settings May 11, 2026 09:18
@linear
Copy link
Copy Markdown

linear Bot commented May 11, 2026

OPS-4266

@MarceloRGonc MarceloRGonc changed the title Update the ECR cron job to support the node architecture. Update the ECR cron job to support the node architecture May 11, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ECR credential refresh CronJob/Job Helm templates to download an architecture-appropriate kubectl binary at runtime, enabling the job to run on non-amd64 nodes (e.g., arm64) as part of OPS-4266.

Changes:

  • Detect node architecture via uname -m and map it to Kubernetes download arch strings.
  • Download kubectl and its .sha256 file for the detected architecture, then verify the checksum.
  • Apply the same update to both the recurring CronJob and the post-install/upgrade init Job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chart/templates/cronjob-ecr-credential-refresh.yaml Outdated
Comment thread chart/templates/cronjob-ecr-credential-refresh.yaml Outdated
Comment thread chart/templates/cronjob-ecr-credential-refresh.yaml Outdated
Comment thread chart/templates/cronjob-ecr-credential-refresh.yaml Outdated
- Validate architecture is amd64 or arm64 before downloading kubectl
- Use curl -fSL instead of -sLO to fail on HTTP errors (e.g., 404)
- Both CronJob and init Job updated

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MarceloRGonc MarceloRGonc merged commit 769fc43 into main May 11, 2026
3 checks passed
@MarceloRGonc MarceloRGonc deleted the mg/update-job branch May 11, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants