Skip to content

Commit a175043

Browse files
committed
A fix I believe, not like I tested or anything
Signed-off-by: Mriyam Tamuli <[email protected]>
1 parent 48925f3 commit a175043

File tree

2 files changed

+53
-7
lines changed

2 files changed

+53
-7
lines changed

.devcontainer/welcome.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,4 @@ This debian dev container image contains all tools needed for development.
44

55
Get started right away! 🚀
66

7-
$ kind create cluster
8-
$ helm install wm-csi \
9-
charts/warm-metal-csi-driver \
10-
-n kube-system \
11-
-f charts/warm-metal-csi-driver/values.yaml \
12-
--set csiPlugin.image.tag=v1.0.1 \
13-
--wait
7+
Check out the guide in docs/running-locally.md

docs/running-locally.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Running Locally
2+
3+
You have two options:
4+
5+
1. Use the [Dev Container](#development-container). This can be used with VSCode, the `devcontainer` CLI, or GitHub Codespaces.
6+
1. Install the [requirements](#requirements) on your computer manually.
7+
8+
## Development Container
9+
10+
The development container contains all the tools necessary to work with csi-driver-image.
11+
12+
You can use the development container in a few different ways:
13+
14+
1. [Visual Studio Code](https://code.visualstudio.com/) with [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). Open the local clone of `csi-driver-image` folder in VSCode and it should offer to use the development container automatically.
15+
1. [`devcontainer` CLI](https://github.com/devcontainers/cli). Once installed, the local clone of `csi-driver-image` folder and run `devcontainer up --workspace-folder .` followed by `devcontainer exec --workspace-folder . /bin/bash` to get a shell where you can build the code. You can use any editor outside the container to edit code; any changes will be mirrored inside the container.
16+
1. [GitHub Codespaces](https://github.com/codespaces). You can start editing as soon as VSCode is open.
17+
18+
Once you have entered the container, continue to [Developing Locally](#developing-locally).
19+
20+
## Requirements
21+
22+
To build on your own machine without using the Dev Container you will need:
23+
24+
* A local clone of this repository.
25+
* [Go](https://golang.org/dl/)
26+
* A local Kubernetes cluster ([`k3d`](https://k3d.io/#quick-start), [`kind`](https://kind.sigs.k8s.io/docs/user/quick-start/#installation), or [`minikube`](https://minikube.sigs.k8s.io/docs/start/))
27+
* [`helm`](https://helm.sh/docs/intro/install/)
28+
29+
## Developing locally
30+
31+
_**Note:** Unless specified otherwise, you need to run all commands after changing your working directory to this repository - `cd /path/to/csi-driver-image-repository`_
32+
33+
1. First, make sure you can connect to the Kubernetes cluster by following the quickstart guide of your chosen local Kubernetes cluster provider.
34+
```
35+
$ kubectl get nodes
36+
```
37+
Make sure you don't see any errors in your terminal. If do get error(s), please check the quickstart guide or the local Kubernetes cluster provider's documentation on how to get started.
38+
39+
1. Install the csi-driver-image using the helm chart.
40+
```
41+
helm install wm-csi \
42+
charts/warm-metal-csi-driver \
43+
-n kube-system \
44+
-f charts/warm-metal-csi-driver/values.yaml \
45+
--set csiPlugin.image.tag=v1.0.1 \
46+
--wait
47+
```
48+
49+
1. You can submit a workflow for testing using `kubectl`:
50+
```bash
51+
kubectl create -f sample/ephemeral-volume.yaml
52+
```

0 commit comments

Comments
 (0)