Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let enable_automated_redeploys default value be configurable #3977

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

calvinli
Copy link
Member

@calvinli calvinli commented Oct 3, 2024

paasta get-image-version will output an empty string if the service has no deploy steps with enable_automated_redeploys enabled (for compatibility with pre-automated-redeploys behavior).

This introduces a new system config enable_automated_redeploys_default, itself defaulted to False, that controls whether paasta get-image-version treats a deploy step with no explicit enable_automated_redeploys as enabled or disabled.

(If set to True this doesn't actually cause automated redeploys to happen, that requires separate additional Jenkins changes.)

Testing

I ran a random paasta get-image-version -s <service> -c <commit> for a service with no enable_automated_redeploys specified and confirmed that existing behavior continues (empty string with a stderr warning), and that you do get an image version if enable_automated_redeploys_default is set to True.

@calvinli calvinli requested a review from a team as a code owner October 3, 2024 20:39
Copy link
Contributor

@piax93 piax93 left a comment

Choose a reason for hiding this comment

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

++

@calvinli calvinli merged commit 6a5c9b1 into master Oct 9, 2024
10 checks passed
@calvinli calvinli deleted the u/calvinli/automated_redeploys_default_toggle branch October 9, 2024 17:46
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