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

Inttest/capi clusterclass recreate upgrade #788

Conversation

jnummelin
Copy link
Member

@jnummelin jnummelin commented Oct 21, 2024

This PR adds a CAPI related test for ClusterClass and upgrading a cluster via Cluster topology

Builds currently on top of #774 , once that lands I'll rebase. For now look at the last commit only. 😄

@jnummelin jnummelin force-pushed the inttest/capi-clusterclass-recreate-upgrade branch from cb950f4 to 2df93af Compare October 22, 2024 08:29
@jnummelin jnummelin marked this pull request as ready for review October 22, 2024 08:29
@jnummelin jnummelin requested a review from a team as a code owner October 22, 2024 08:29
@jnummelin jnummelin force-pushed the inttest/capi-clusterclass-recreate-upgrade branch from 2df93af to 8d59645 Compare October 22, 2024 11:13
@apedriza
Copy link
Contributor

I think we need to add this test to CI

@jnummelin
Copy link
Member Author

I think we need to add this test to CI

Absolutely. For some reason my brain was telling me that if I add it to inttest/Makefile.variables it'll be picked up. 🤦

Signed-off-by: Jussi Nummelin <jnummelin@mirantis.com>
@jnummelin jnummelin force-pushed the inttest/capi-clusterclass-recreate-upgrade branch from 8d59645 to be76abb Compare October 22, 2024 11:33
err = util.UpdateCluster(s.ctx, s.client, cluster)
s.Require().NoError(err)

s.T().Log("waiting for control-plane nodes to be updated")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth checking that the worker nodes are also updated with new version?

@jnummelin jnummelin merged commit 0b786c5 into k0sproject:main Oct 28, 2024
36 checks passed
@jnummelin jnummelin deleted the inttest/capi-clusterclass-recreate-upgrade branch October 28, 2024 14:18
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