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

Local testing with kind or vm through nixos-shell #62

Merged
merged 5 commits into from
Mar 5, 2025
Merged

Conversation

tiagolobocastro
Copy link
Contributor

test: local testing with nixos-shell or kind

Adds kind deployment scripts and configures the local testing to support
running k8s e2e test against a kind cluster or nixos-shell.

The kind clusters needs to configure an ssh server, as required by the
k8s e2e test framework.

build(nix-shell): add shell for k8s testing

build: update pb file

test(nixos-shell): add nixos-shell vm for build and testing

This allows us to start a "vm within a shell" which is very useful for
deploying and testing the driver in an isolated environment, with a
k3s cluster.

@tiagolobocastro tiagolobocastro requested a review from a team as a code owner March 4, 2025 19:31
@tiagolobocastro
Copy link
Contributor Author

tiagolobocastro commented Mar 4, 2025

@mhkarimi1383, I added some nix-shell here, but only because it's useful for me, can be changed on your task for the devenv
The tests now run locally, I'll add GHA on another PR
This is a precursor to #41

@tiagolobocastro tiagolobocastro added kind/dev-env Indicates an issue or PR related to Dev Environment area/build Indicates an issue on the build labels Mar 4, 2025
@mhkarimi1383
Copy link
Member

With that said, I will not work on Devenv, I will complete this shell.nix tomorrow, also I will integrate it with poetry later on

tiagolobocastro and others added 4 commits March 4, 2025 20:17
This allows us to start a "vm within a shell" which is very useful for
deploying and testing the driver in an isolated environment, with a
k3s cluster.

Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
Signed-off-by: mchtech <michu_an@126.com>
Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
Adds kind deployment scripts and configures the local testing to support
running k8s e2e test against a kind cluster or nixos-shell.

The kind clusters needs to configure an ssh server, as required by the
k8s e2e test framework.

Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
@mhkarimi1383
Copy link
Member

LGTM

Signed-off-by: Muhammed Hussein karimi <info@karimi.dev>
@mhkarimi1383 mhkarimi1383 merged commit c446869 into develop Mar 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Indicates an issue on the build kind/dev-env Indicates an issue or PR related to Dev Environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants