From 9ae45fbca7969d79f59c04f429ae6c07e780df01 Mon Sep 17 00:00:00 2001 From: Steve Loranz Date: Sep 02 2021 15:46:37 +0000 Subject: use variable substitution for selecting driver Set environment variable MINIKUBE_DRIVER to what is appropriate for your platform / environment. --- diff --git a/operator/molecule/minikube/create.yml b/operator/molecule/minikube/create.yml index d5b3e17..277cfc8 100644 --- a/operator/molecule/minikube/create.yml +++ b/operator/molecule/minikube/create.yml @@ -5,4 +5,4 @@ gather_facts: false tasks: - name: Start minikube - command: minikube start --driver=kvm2 + command: minikube start --driver={{ minikube_driver }} diff --git a/operator/molecule/minikube/molecule.yml b/operator/molecule/minikube/molecule.yml index a8fc5b5..2b34fa5 100644 --- a/operator/molecule/minikube/molecule.yml +++ b/operator/molecule/minikube/molecule.yml @@ -35,7 +35,7 @@ provisioner: project_dir: ${MOLECULE_PROJECT_DIRECTORY} operator_pull_policy: "Never" kustomize: ${KUSTOMIZE_PATH:-kustomize} - minikube_drriver: kvm2 + minikube_driver: ${MINIKUBE_DRIVER:-kvm2} scenario: name: minikube test_sequence: