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

feat: new dev/test environment #401

Merged
merged 1 commit into from
Apr 6, 2023
Merged

feat: new dev/test environment #401

merged 1 commit into from
Apr 6, 2023

Conversation

apricote
Copy link
Member

@apricote apricote commented Apr 6, 2023

This PR simplifies and unifies the process of bringing up a hcloud k8s environment that is suitable for development/testing purposes. It builds off the work originally started in #226

The central script is hack/dev-up.sh. The script requires a HCLOUD_TOKEN, and will build a 1+ k8s cluster using k3sup +
hcloud CLI tools. It's typically quite fast: a cold execution of the script should take less <1min before a fully operational cluster is
ready for use.

The dev-down.sh script will delete all resources created by dev-up.sh.

One of the primary objectives in this work was to simplify the e2e testing process.

Skaffold is plumbed into the e2e test pipelines on GitHub. This way, the process of building and deploying a test build of csi-driver to a cluster is unified for development and test.

Once this work has landed and stabilized here, we expect to package it up a bit further and use it in csi-driver and anywhere else we operate Kubernetes integrations that need automated testing.

@apricote apricote self-assigned this Apr 6, 2023
@apricote apricote force-pushed the dev-env branch 2 times, most recently from 870a2c4 to c136471 Compare April 6, 2023 12:59
hack/dev-up.sh Outdated Show resolved Hide resolved
@apricote apricote force-pushed the dev-env branch 5 times, most recently from 72bd09e to ca7a16b Compare April 6, 2023 14:35
This PR simplifies and unifies the process of bringing up a hcloud k8s
environment that is suitable for development/testing purposes. It
builds off the work originally started in #226

The central script is `hack/dev-up.sh`. The script requires a
`HCLOUD_TOKEN`, and will build a 1+ k8s cluster using `k3sup` +
`hcloud` CLI tools. It's typically quite fast: a cold execution of the
script should take less <1min before a fully operational cluster is
ready for use.

The `dev-down.sh` script will delete all resources created by
`dev-up.sh`.

One of the primary objectives in this work was to simplify the e2e
testing process.

Skaffold is plumbed into the e2e test pipelines on GitHub. This way,
the process of building and deploying a test build of csi-driver to a
cluster is unified for development and test.

Once this work has landed and stabilized here, we expect to package it up a bit further and use it in csi-driver and anywhere else we operate Kubernetes integrations that need automated testing.

Co-authored-by: Sam Day <me@samcday.com>
@apricote apricote marked this pull request as ready for review April 6, 2023 15:19
@apricote apricote requested a review from samcday April 6, 2023 15:21
Copy link
Contributor

@samcday samcday left a comment

Choose a reason for hiding this comment

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

🚀

@apricote apricote merged commit 8f19827 into main Apr 6, 2023
5 checks passed
@apricote apricote deleted the dev-env branch April 6, 2023 15:35
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.

None yet

2 participants