Skip to content

Commit

Permalink
Update kubevirtci due to a bug in last version
Browse files Browse the repository at this point in the history
Signed-off-by: Shelly Kagan <skagan@redhat.com>
  • Loading branch information
ShellyKa13 committed Jan 30, 2024
1 parent 71c67b4 commit d171a45
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 359 deletions.
20 changes: 19 additions & 1 deletion cluster-up/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# How to use cluster-up
# cluster-up

## Prerequisites: podman or docker

cluster-up requires that either podman or docker be installed on the host.

If podman is being used, it is also necessary to enable podman socket with:

```
sudo systemctl enable podman.socket
sudo systemctl start podman.socket
```

for more information see:

https://github.com/kubevirt/kubevirtci/blob/main/PODMAN.md


## How to use cluster-up

This directory provides a wrapper around gocli. It can be vendored into other
git repos and integrated to provide in the kubevirt well-known cluster commands
Expand Down
9 changes: 0 additions & 9 deletions cluster-up/cluster/k8s-1.25/provider.sh

This file was deleted.

45 changes: 0 additions & 45 deletions cluster-up/cluster/kind-1.23/README.md

This file was deleted.

51 changes: 0 additions & 51 deletions cluster-up/cluster/kind-1.23/provider.sh

This file was deleted.

45 changes: 0 additions & 45 deletions cluster-up/cluster/kind-1.27/README.md

This file was deleted.

51 changes: 0 additions & 51 deletions cluster-up/cluster/kind-1.27/provider.sh

This file was deleted.

15 changes: 14 additions & 1 deletion cluster-up/cluster/kind/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ function detect_cri() {

export CRI_BIN=${CRI_BIN:-$(detect_cri)}
CONFIG_WORKER_CPU_MANAGER=${CONFIG_WORKER_CPU_MANAGER:-false}
# only setup ipFamily when the environmental variable is not empty
# avaliable value: ipv4, ipv6, dual
IPFAMILY=${IPFAMILY}

# check CPU arch
PLATFORM=$(uname -m)
Expand Down Expand Up @@ -286,10 +289,20 @@ EOF
fi
}

function _setup_ipfamily() {
if [ $IPFAMILY != "" ]; then
cat <<EOF >> ${KUBEVIRTCI_CONFIG_PATH}/$KUBEVIRT_PROVIDER/kind.yaml
networking:
ipFamily: $IPFAMILY
EOF
echo "KIND cluster ip family has been set to $IPFAMILY"
fi
}

function _prepare_kind_config() {
_add_workers
_add_kubeadm_config_patches

_setup_ipfamily
echo "Final KIND config:"
cat ${KUBEVIRTCI_CONFIG_PATH}/$KUBEVIRT_PROVIDER/kind.yaml
}
Expand Down
98 changes: 0 additions & 98 deletions cluster-up/cluster/local/README.md

This file was deleted.

Loading

0 comments on commit d171a45

Please sign in to comment.