Skip to content

Commit

Permalink
docs: howto create patches
Browse files Browse the repository at this point in the history
- Commands to create patches for kubevirt or cdi

Signed-off-by: Ivan Mikheykin <[email protected]>
  • Loading branch information
diafour committed Feb 13, 2024
1 parent 7bf5e68 commit bc2fa5b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/internal/patches.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Howto create patches for kubectl and cdi

1. Checkout kubevirt (or cdi) along with virtualization-controller. Use `$version` from werf.inc.yaml:
```shell
$ pwd
/home/user/virtualization-controller
$ cd ..
$ git checkout github.com/kubevirt/kubevirt kubevirt
$ git clone --branch v1.0.0 https://github.com/kubevirt/kubevirt.git kubevirt
```

2. Make changes in kubevirt directory.

3. Create patch:
```shell
$ cd kubevirt
$ git diff > ../virtualization-controller/images/virt-artifact/patches/my-precious-override.patch
```

4. Add a new file before pushing:
```shell
$ cd ../virtualization-controller
$ git add images/virt-artifact/patches/my-precious-override.patch
```

0 comments on commit bc2fa5b

Please sign in to comment.