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

[v2.10] Update LoadUpgradeKubernetesConfig for upgrade refactor #231

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

markusewalker
Copy link
Contributor

Issue: Refactor upgrading package to follow current best practices

PR Description

As part of the QA task, we are refactoring the upgrading package to follow the best practices that packages such as provisioning and snapshot follow. When refactoring, it was agreed upon to have kubernetes_test.go perform the pre and post upgrade checks instead of workload_test.go. That way, one test runs all of the operations.

How it currently is, you have to run 3 individual tests that all pertain to one Kubernetes upgrade. This is being addressed in the r/r PR. For shepherd, we need to update the LoadUpgradeKubernetesConfig to ensure that the parameters found in LoadUpgradeWorkloadsConfig are being referenced.

This way, the kubernetes_test.go does not need to have to call two separate configs, which is making the refactor overly complicated.

@markusewalker markusewalker force-pushed the markusv29/task-1395 branch 2 times, most recently from 81d615a to 0d5a001 Compare July 18, 2024 15:13
Copy link
Contributor

@slickwarren slickwarren left a comment

Choose a reason for hiding this comment

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

overall lgtm, but one small nit on the update helper(s)

extensions/clusters/clusters.go Show resolved Hide resolved
@markusewalker markusewalker changed the title [v2.9] Update LoadUpgradeKubernetesConfig for upgrade refactor [v2.10] Update LoadUpgradeKubernetesConfig for upgrade refactor Aug 2, 2024
@slickwarren slickwarren merged commit 45cbbb1 into rancher:main Aug 2, 2024
1 check passed
@markusewalker markusewalker deleted the markusv29/task-1395 branch August 2, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release-testing Related to Release Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants