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

Add test for k0smotron upgrade #764

Merged

Conversation

apedriza
Copy link
Contributor

@apedriza apedriza commented Oct 7, 2024

This test recreates an upgrade of the k0smotron operator and checks that the behavior remains as expected after that.

@apedriza apedriza requested a review from a team as a code owner October 7, 2024 10:11
@apedriza apedriza marked this pull request as draft October 7, 2024 10:11
@apedriza apedriza force-pushed the add_inttest_for_updating_k0smotron_itself branch 2 times, most recently from 0a6b5d6 to 4383a31 Compare October 7, 2024 13:09
@apedriza apedriza marked this pull request as ready for review October 7, 2024 13:48
@apedriza apedriza marked this pull request as draft October 8, 2024 11:07
@apedriza apedriza force-pushed the add_inttest_for_updating_k0smotron_itself branch from 4383a31 to d922736 Compare October 10, 2024 10:16
@apedriza apedriza marked this pull request as ready for review October 10, 2024 10:17
@apedriza apedriza changed the title Add test for k0smotron upgrade in standalone mode Add test for k0smotron upgrade Oct 10, 2024
s.Require().True(kmc.Status.Ready)
}

func (s *UpgradeSuite) checkStatePersists(ctx context.Context, mountedPath string, kc *kubernetes.Clientset, rc *rest.Config) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We also need to check the cluster state in etcd, eg create some object using API before the upgrade and check if it still exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 👍

@apedriza apedriza force-pushed the add_inttest_for_updating_k0smotron_itself branch from d922736 to 7488da1 Compare October 16, 2024 08:46
This test recreates an upgrade of the k0smotron operator and checks that the behavior remains as expected after that.

Signed-off-by: Adrian Pedriza <[email protected]>
@apedriza apedriza force-pushed the add_inttest_for_updating_k0smotron_itself branch from 7488da1 to a07f384 Compare November 20, 2024 08:40
@apedriza apedriza merged commit 4d37df9 into k0sproject:main Nov 20, 2024
37 checks passed
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