multus: fix default service account handling

The default service account isn't passed to the multus validation test
when no config file is used. Fix this.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 58e3feaacf)
This commit is contained in:
Blaine Gardner authored and Mergify committed 2024-08-22 16:33:00 +00:00
1 parent 5b49a2cc21
commit 8beec3e125
6 files changed
+22

No files matched your search

+4
View File
@@ -6,6 +6,10 @@ OUTFILE="cli-test.log"
kubectl create namespace "$NAMESPACE"
# create the expected serviceaccount in the namespace
# in Minikube/KinD, the tool needs no special permissions, so just the SA is fine
kubectl create serviceaccount rook-ceph-system --namespace "$NAMESPACE"
./rook --log-level DEBUG multus validation run \
--namespace "$NAMESPACE" \
--public-network default/public-net \
@@ -7,6 +7,10 @@ OUTFILE="overlap-test.log"
kubectl create namespace "$NAMESPACE"
# create the expected serviceaccount in the namespace
# in Minikube/KinD, the tool needs no special permissions, so just the SA is fine
kubectl create serviceaccount rook-ceph-system --namespace "$NAMESPACE"
sed \
-e "s|namespace:.*|namespace: $NAMESPACE|" \
-e 's|publicNetwork:.*|publicNetwork: "default/public-net"|' \
@@ -7,6 +7,10 @@ OUTFILE="stretch-pub-and-cluster-test.log"
kubectl create namespace "$NAMESPACE"
# create the expected serviceaccount in the namespace
# in Minikube/KinD, the tool needs no special permissions, so just the SA is fine
kubectl create serviceaccount rook-ceph-system --namespace "$NAMESPACE"
sed \
-e "s|namespace:.*|namespace: $NAMESPACE|" \
-e 's|publicNetwork:.*|publicNetwork: "default/public-net"|' \
@@ -7,6 +7,10 @@ OUTFILE="stretch-pub-test.log"
kubectl create namespace "$NAMESPACE"
# create the expected serviceaccount in the namespace
# in Minikube/KinD, the tool needs no special permissions, so just the SA is fine
kubectl create serviceaccount rook-ceph-system --namespace "$NAMESPACE"
# all daemons get public network, so all should get started
sed \
@@ -7,6 +7,10 @@ OUTFILE="stretch-cluster-test.log"
kubectl create namespace "$NAMESPACE"
# create the expected serviceaccount in the namespace
# in Minikube/KinD, the tool needs no special permissions, so just the SA is fine
kubectl create serviceaccount rook-ceph-system --namespace "$NAMESPACE"
sed \
-e "s|namespace:.*|namespace: $NAMESPACE|" \
-e 's|publicNetwork:.*|publicNetwork: ""|' \