Skip to content

Commit 10f14ed

Browse files
update jinjanate install to use pipx and mention pipx and skopeo as dependencies
Signed-off-by: Geo Turcsanyi <[email protected]>
1 parent 22e3796 commit 10f14ed

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

contrib/kind.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,8 @@ print_params() {
459459

460460
install_jinjanator_renderer() {
461461
# ensure jinjanator renderer installed
462-
pip install wheel --user
463-
pip freeze | grep jinjanator || pip install jinjanator[yaml] --user
462+
pipx install jinjanator[yaml]
463+
pipx ensurepath --force >/dev/null
464464
export PATH=~/.local/bin:$PATH
465465
}
466466

@@ -499,11 +499,11 @@ check_dependencies() {
499499
fi
500500

501501
if ! command_exists jinjanate ; then
502-
if ! command_exists pip ; then
503-
echo "Dependency not met: 'jinjanator' not installed and cannot install with 'pip'"
502+
if ! command_exists pipx ; then
503+
echo "Dependency not met: 'jinjanator' not installed and cannot install with 'pipx'"
504504
exit 1
505505
fi
506-
echo "'jinjanate' not found, installing with 'pip'"
506+
echo "'jinjanate' not found, installing with 'pipx'"
507507
install_jinjanator_renderer
508508
fi
509509

docs/installation/launching-ovn-kubernetes-on-kind.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,19 @@ KIND (Kubernetes in Docker) deployment of OVN kubernetes is a fast and easy mean
1414
sudo firewall-cmd --permanent --add-port=11337/tcp; sudo firewall-cmd --reload
1515
```
1616
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
17-
- Python and pip
17+
- Python 3 and [pipx](https://pipx.pypa.io/stable/installation/)
1818
- jq
1919
- openssl
2020
- openvswitch
2121
- Go 1.23.0 or above
22-
23-
**NOTE :** In certain operating systems such as CentOS 8.x, pip2 and pip3 binaries are installed instead of pip. In such situations create a softlink for "pip" that points to "pip2".
22+
- For podman users: skopeo
2423
2524
For OVN kubernetes KIND deployment, use the `kind.sh` script.
2625
2726
First Download and build the OVN-Kubernetes repo:
2827
29-
```
30-
git clone https://github.com/ovn-kubernetes/ovn-kubernetes.git;
28+
```shell
29+
git clone https://github.com/ovn-kubernetes/ovn-kubernetes.git
3130
cd ovn-kubernetes
3231
```
3332
The `kind.sh` script builds OVN-Kubernetes into a container image. To verify
@@ -54,13 +53,6 @@ $ ./kind.sh
5453
$ popd
5554
```
5655

57-
**NOTE:** If you run into issues with installing jinjanate on Ubuntu due to [PEP-0668](https://peps.python.org/pep-0668/) you can work around via:
58-
```
59-
sudo apt-get install pipx
60-
pipx install jinjanator[yaml]
61-
pipx ensurepath
62-
```
63-
6456
### Run the KIND deployment with podman
6557

6658
To verify local changes, the steps are mostly the same as with docker, except the `fedora` make target:
@@ -87,8 +79,9 @@ To deploy KIND however, you need to start it as root and then copy root's kube c
8779
```
8880
$ pushd contrib
8981
$ sudo ./kind.sh -ep podman
82+
$ mkdir -p ~/.kube
9083
$ sudo cp /root/ovn.conf ~/.kube/kind-config
91-
$ sudo chown $(id -u):$(id -g) -R ~/.kube
84+
$ sudo chown $(id -u):$(id -g) ~/.kube/kind-config
9285
$ export KUBECONFIG=~/.kube/kind-config
9386
$ popd
9487
```

0 commit comments

Comments
 (0)