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

Added test (virtual cluster creation, with pod) and small kubeconfig refactor #211

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

enrichman
Copy link
Collaborator

@enrichman enrichman commented Jan 23, 2025

Ref:


This PR adds a test that creates a virtual cluster, and create a Nginx pod in the virtual cluster.

It adds also a small fix to get the proper host patch version

k8sVersion := strings.Split(hostVersion.GitVersion, "+")[0]
cluster.Status.HostVersion = k8sVersion + "-k3s1"

and a small refactor of the kubeconfig generation, moving the bootstrap GetSecret in the bootstrap package.

@enrichman enrichman changed the title added virtual cluster and pod test Added test with virtual cluster creation and Nginx Jan 24, 2025
@enrichman enrichman changed the title Added test with virtual cluster creation and Nginx Added test (virtual cluster creation, with pod) and small kubeconfig refactor Jan 24, 2025
@enrichman enrichman marked this pull request as ready for review January 24, 2025 11:30
@enrichman enrichman requested a review from jp-gouin January 24, 2025 11:31
@enrichman enrichman self-assigned this Jan 24, 2025
@enrichman enrichman force-pushed the 166-test-vcluster-pod branch from 503af33 to 3231797 Compare January 24, 2025 11:34
@enrichman enrichman merged commit 44045c5 into rancher:main Jan 24, 2025
4 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