Skip to content

Commit

Permalink
e2e: use minikube OS with nbd dynamic module
Browse files Browse the repository at this point in the history
For rbd-nbd testing purpose, this is needed.
At least until we have minikube release with
kubernetes/minikube#10217

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
  • Loading branch information
Prasanna Kumar Kalever committed Jan 25, 2021
1 parent 0d5efe9 commit 67b903a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ fi
# caller did set EXTRA_CONFIG in the environment
EXTRA_CONFIG="${EXTRA_CONFIG} --extra-config=kubelet.resolv-conf=${RESOLV_CONF}"

# TESTING: use alternative minikube OS which has nbd module in the VM
EXTRA_CONFIG="${EXTRA_CONFIG} --iso-url=https://people.redhat.com/ndevos/minikube/minikube_add-nbd.iso"

#extra Rook configuration
ROOK_BLOCK_POOL_NAME=${ROOK_BLOCK_POOL_NAME:-"newrbdpool"}

Expand Down Expand Up @@ -219,7 +222,7 @@ up)
else
# This is a workaround to fix psp issues in minikube >1.6.2 and <1.11.0
# shellcheck disable=SC2086
${minikube} start --force --memory="${MEMORY}" --cpus="${CPUS}" -b kubeadm --kubernetes-version="${KUBE_VERSION}" --driver="${VM_DRIVER}" --feature-gates="${K8S_FEATURE_GATES}"
${minikube} start --force --memory="${MEMORY}" --cpus="${CPUS}" -b kubeadm --kubernetes-version="${KUBE_VERSION}" --driver="${VM_DRIVER}" --feature-gates="${K8S_FEATURE_GATES}" ${EXTRA_CONFIG}
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
${minikube} kubectl -- apply -f "$DIR"/psp.yaml
${minikube} stop
Expand Down

0 comments on commit 67b903a

Please sign in to comment.