Skip to content

Commit a79029b

Browse files
Fixes call to check_kmm_kmod function (kubernetes-sigs#300)
Fix check kmm_kmod function which checks in node if kmm_kmod is loaded.
1 parent 0486204 commit a79029b

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

ci/prow/e2e-crd-variable

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
set -euxo pipefail
44

5-
echo "Get first node..."
6-
NODE=$(oc get nodes -o jsonpath='{.items..metadata.name}' | awk {'print $1'})
7-
85
source ci/prow/check-kmm-kmod
6+
export -f check_kmm_kmod
7+
8+
echo "Get first node..."
9+
export NODE=$(oc get nodes -o jsonpath='{.items..metadata.name}' | awk {'print $1'})
910

1011
echo "Label a node to match selector in Module afterwards..."
1112
oc label node $NODE task=kmm-ci

ci/prow/e2e-incluster-build

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22

33
set -euxo pipefail
44

5-
echo "Deploy KMMO..."
6-
make deploy
5+
source ci/prow/check-kmm-kmod
6+
export -f check_kmm_kmod
77

88
echo "Get first node..."
9-
NODE=$(oc get nodes -o jsonpath='{.items..metadata.name}' | awk {'print $1'})
10-
11-
source ci/prow/check-kmm-kmod
9+
export NODE=$(oc get nodes -o jsonpath='{.items..metadata.name}' | awk {'print $1'})
1210

1311
echo "Label a node to match selector in Module afterwards..."
1412
oc label node $NODE task=kmm-ci
1513

14+
echo "Deploy KMMO..."
15+
make deploy
16+
1617
echo "Wait until the KMMO Deployment is Available"
1718
oc wait --for condition=Available --timeout 1m deployments.apps -n kmm-operator-system kmm-operator-controller-manager
1819

ci/prow/e2e-prebuilt-kernel-module

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
set -euxo pipefail
44

5-
echo "Get first node..."
6-
NODE=$(oc get nodes -o jsonpath='{.items..metadata.name}' | awk {'print $1'})
7-
85
source ci/prow/check-kmm-kmod
6+
export -f check_kmm_kmod
7+
8+
echo "Get first node..."
9+
export NODE=$(oc get nodes -o jsonpath='{.items..metadata.name}' | awk {'print $1'})
910

1011
echo "Label a node to match selector in Module afterwards..."
1112
oc label node $NODE task=kmm-ci

0 commit comments

Comments
 (0)