Skip to content

fix: adding crontab for AzureLinux in custom clouds to ensure custom CAs are getting refreshed daily#7785

Merged
djsly merged 7 commits intomainfrom
djsly/36644870
Feb 4, 2026
Merged

fix: adding crontab for AzureLinux in custom clouds to ensure custom CAs are getting refreshed daily#7785
djsly merged 7 commits intomainfrom
djsly/36644870

Conversation

@djsly
Copy link
Collaborator

@djsly djsly commented Feb 4, 2026

What this PR does / why we need it:
adding crontab for AzureLinux in custom clouds to custom CAs are refreshed daily

Which issue(s) this PR fixes:

Fixes #

Copy link
Contributor

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 ensures that on Mariner/AzureLinux nodes in AKS custom clouds, custom CA certificates are refreshed automatically on a daily basis, similar to existing behavior on Ubuntu.

Changes:

  • In init-aks-custom-cloud-mariner.sh, add an action mode flag and a cron job that runs the script daily with ca-refresh, performing only the certificate refresh path and skipping subsequent repo initialization.
  • In init-aks-custom-cloud-operation-requests-mariner.sh, add the same action handling and cron job around the operation-requests-based CA retrieval and update logic.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
parts/linux/cloud-init/artifacts/init-aks-custom-cloud-mariner.sh Adds a guarded daily root crontab entry that re-runs the script in ca-refresh mode to recopy Azure CA certs and run /usr/bin/update-ca-trust, mirroring the existing Ubuntu behavior.
parts/linux/cloud-init/artifacts/init-aks-custom-cloud-operation-requests-mariner.sh Adds the same ca-refresh mode and cron scheduling around the operation-requests-based certificate retrieval and trust store update for Mariner/AzureLinux in non-stack custom clouds.

Copilot AI review requested due to automatic review settings February 4, 2026 16:04
@djsly djsly changed the title adding crontab for AzureLinux in custom clouds to custom CAs are refreshed daily fix: adding crontab for AzureLinux in custom clouds to custom CAs are refreshed daily Feb 4, 2026
@djsly djsly changed the title fix: adding crontab for AzureLinux in custom clouds to custom CAs are refreshed daily fix: adding crontab for AzureLinux in custom clouds to ensure custom CAs are getting refreshed daily Feb 4, 2026
Copy link
Contributor

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings February 4, 2026 18:40
Copy link
Contributor

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

Copilot reviewed 13 out of 15 changed files in this pull request and generated no new comments.

@djsly djsly merged commit ec7710a into main Feb 4, 2026
23 of 27 checks passed
@djsly djsly deleted the djsly/36644870 branch February 4, 2026 21:47
mxj220 pushed a commit that referenced this pull request Feb 5, 2026
mxj220 pushed a commit that referenced this pull request Feb 5, 2026
mxj220 pushed a commit that referenced this pull request Feb 5, 2026
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.

2 participants

Comments