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

Expose upgrade config in the info API #3266

Merged
merged 1 commit into from
Aug 3, 2024
Merged

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

This will be used in the E2E testing to determine which ruleset should be used when executing tests.

How this works

Exposes the upgrade.Config through a new info.upgrades API.

How this was tested

  • Manually

@@ -14,7 +14,7 @@ import (

var (
InitiallyActiveTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC)
UnscheduledActivationTime = time.Date(10000, time.December, 1, 0, 0, 0, 0, time.UTC)
UnscheduledActivationTime = time.Date(9999, time.December, 1, 0, 0, 0, 0, time.UTC)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

JSON marshaling actually doesn't support timestamps with years >9999 because the format is fixed width.

@StephenButtolph StephenButtolph self-assigned this Aug 2, 2024
@StephenButtolph StephenButtolph added this to the v1.11.11 milestone Aug 2, 2024
@StephenButtolph StephenButtolph marked this pull request as ready for review August 2, 2024 22:40
@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 3, 2024
Merged via the queue into master with commit 5f19677 Aug 3, 2024
20 checks passed
@StephenButtolph StephenButtolph deleted the expose-upgrade-config branch August 3, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants