Skip to content

Commit

Permalink
Bump ipam to v0.1.9-alpha and enable managed tap (#1954)
Browse files Browse the repository at this point in the history
* e2e, ipam-ext: Increase ulimit

In order to prevent virt-handler crashing on kind cluster on ipam-ext CI,
increasing max files on cluster nodes

Signed-off-by: Ram Lavi <[email protected]>

* e2e, ipam-ext: Add network-segmentation flag on kind flags

Adding this kind flag is need in order to enable the primary UDN feature
on OVNK

Signed-off-by: Ram Lavi <[email protected]>

* e2e, ipam-ext: Support managedTap binding

Signed-off-by: Ram Lavi <[email protected]>

* bump kubevirt-ipam-controller to v0.1.9-alpha

Signed-off-by: CNAO Bump Bot <[email protected]>

---------

Signed-off-by: Ram Lavi <[email protected]>
Signed-off-by: CNAO Bump Bot <[email protected]>
Co-authored-by: Or Shoval <[email protected]>
Co-authored-by: CNAO Bump Bot <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent edd1798 commit 02a9c81
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
20 changes: 19 additions & 1 deletion automation/check-patch.e2e-kubevirt-ipam-controller-functests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ teardown() {
rm -rf "${TMP_COMPONENT_PATH}"
}

increase_ulimit() {
if [ -z "${OCI_BIN}" ];then
export OCI_BIN=$(if podman ps >/dev/null 2>&1; then echo podman; elif docker ps >/dev/null 2>&1; then echo docker; else echo "Neither podman nor docker is available." >&2; exit 1; fi)
fi

for node in $(./cluster/kubectl.sh get node --no-headers -o custom-columns=":metadata.name"); do
$OCI_BIN exec -t $node bash -c "echo 'fs.inotify.max_user_watches=1048576' >> /etc/sysctl.conf"
$OCI_BIN exec -t $node bash -c "echo 'fs.inotify.max_user_instances=512' >> /etc/sysctl.conf"
$OCI_BIN exec -i $node bash -c "sysctl -p /etc/sysctl.conf"
if [[ "${node}" =~ worker ]]; then
./cluster/kubectl.sh label nodes $node node-role.kubernetes.io/worker="" --overwrite=true
fi
done
}

main() {
if [ "$GITHUB_ACTIONS" == "true" ]; then
ARCH="amd64"
Expand All @@ -41,18 +56,21 @@ main() {

cd ${TMP_COMPONENT_PATH}
export KUBECONFIG=${TMP_COMPONENT_PATH}/.output/kubeconfig
export KIND_ARGS="-ic -i6 -mne"
export KIND_ARGS="-ic -i6 -mne -nse"
make cluster-up

trap teardown EXIT

increase_ulimit
cd ${TMP_PROJECT_PATH}
export KUBEVIRT_PROVIDER=external
export DEV_IMAGE_REGISTRY=localhost:5000
./cluster/cert-manager-install.sh
deploy_cnao
deploy_cnao_cr
./hack/deploy-kubevirt.sh
./cluster/kubectl.sh -n kubevirt patch kubevirt kubevirt --type=json --patch '[{"op":"add","path":"/spec/configuration/developerConfiguration","value":{"featureGates":[]}},{"op":"add","path":"/spec/configuration/developerConfiguration/featureGates/-","value":"NetworkBindingPlugins"},{"op":"add","path":"/spec/configuration/developerConfiguration/featureGates/-","value":"DynamicPodInterfaceNaming"}]'
./cluster/kubectl.sh -n kubevirt patch kubevirt kubevirt --type=json --patch '[{"op":"add","path":"/spec/configuration/network","value":{"binding":{"managedTap":{"domainAttachmentType":"managedTap","migration":{}}}}}]'
./cluster/kubectl.sh -n kubevirt patch kubevirt kubevirt --type=merge --patch '{"spec":{"configuration":{"virtualMachineOptions":{"disableSerialConsoleLog":{}}}}}'

cd ${TMP_COMPONENT_PATH}
Expand Down
4 changes: 2 additions & 2 deletions components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ components:
metadata: v0.45.0
kubevirt-ipam-controller:
url: https://github.com/kubevirt/ipam-extensions
commit: 74c7ef7860f52af37988d6777925c27c79564065
commit: 5e1af1665a9241c92dfc179bf1347630a62f05b8
branch: main
update-policy: tagged
metadata: v0.1.7-alpha
metadata: v0.1.9-alpha
linux-bridge:
url: https://github.com/containernetworking/plugins
commit: 14bdce598f9d332303c375c35719c4a158f1e7db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ spec:
name: cert
readOnly: true
imagePullPolicy: {{ .ImagePullPolicy }}
priorityClassName: system-cluster-critical
securityContext:
runAsNonRoot: true
seccompProfile:
Expand Down
4 changes: 2 additions & 2 deletions pkg/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const (
KubeRbacProxyImageDefault = "quay.io/brancz/kube-rbac-proxy@sha256:e6a323504999b2a4d2a6bf94f8580a050378eba0900fd31335cf9df5787d9a9b"
KubeSecondaryDNSImageDefault = "ghcr.io/kubevirt/kubesecondarydns@sha256:8273cdbc438e06864eaa8e47947bea18fa5118a97cdaddc41b5dfa6e13474c79"
CoreDNSImageDefault = "registry.k8s.io/coredns/coredns@sha256:a0ead06651cf580044aeb0a0feba63591858fb2e43ade8c9dea45a6a89ae7e5e"
KubevirtIpamControllerImageDefault = "ghcr.io/kubevirt/ipam-controller@sha256:aad40edd34f65cf0e087969853d47065aaf411dccf618d196152b583d40300ba"
PasstBindingCNIImageDefault = "ghcr.io/kubevirt/passt-binding-cni@sha256:981c01e0b94ae691ba8ced43c486930085186e9c40b22525c8f0229d1556ee69"
KubevirtIpamControllerImageDefault = "ghcr.io/kubevirt/ipam-controller@sha256:41c3a436d871110f995af6d0b3cff7a90fb53a5bad4d4e99ab0954c3e1b79279"
PasstBindingCNIImageDefault = "ghcr.io/kubevirt/passt-binding-cni@sha256:21093fe555e8962f666002258ae3402315fae3d9ec2ae10128529ec0a305bad4"
)

type AddonsImages struct {
Expand Down
4 changes: 2 additions & 2 deletions test/releases/99.0.0.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ func init() {
ParentName: "kubevirt-ipam-controller-manager",
ParentKind: "Deployment",
Name: "manager",
Image: "ghcr.io/kubevirt/ipam-controller@sha256:aad40edd34f65cf0e087969853d47065aaf411dccf618d196152b583d40300ba",
Image: "ghcr.io/kubevirt/ipam-controller@sha256:41c3a436d871110f995af6d0b3cff7a90fb53a5bad4d4e99ab0954c3e1b79279",
},
{
ParentName: "passt-binding-cni",
ParentKind: "DaemonSet",
Name: "installer",
Image: "ghcr.io/kubevirt/passt-binding-cni@sha256:981c01e0b94ae691ba8ced43c486930085186e9c40b22525c8f0229d1556ee69",
Image: "ghcr.io/kubevirt/passt-binding-cni@sha256:21093fe555e8962f666002258ae3402315fae3d9ec2ae10128529ec0a305bad4",
},
},
SupportedSpec: cnao.NetworkAddonsConfigSpec{
Expand Down

0 comments on commit 02a9c81

Please sign in to comment.