Skip to content

Commit

Permalink
Merge pull request #25 from karellen/minikube_profile_fix_share_cache
Browse files Browse the repository at this point in the history
Don't create a directory per minikube profile
  • Loading branch information
arcivanov authored Dec 19, 2023
2 parents 6c81be4 + d7bebd5 commit 767a6cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
29 changes: 0 additions & 29 deletions src/integrationtest/python/smoke_clear_cache_tests.py

This file was deleted.

6 changes: 3 additions & 3 deletions src/main/python/kubernator/plugins/minikube.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def cmd_out(self, *extra_args):
def _stanza(self, extra_args):
context = self.context
minikube = context.minikube
stanza = [context.minikube.minikube_file, "-p", f"minikube-{minikube.profile}"] + extra_args
stanza = [context.minikube.minikube_file, "-p", minikube.profile] + extra_args
env = dict(os.environ)
env["MINIKUBE_HOME"] = str(self.minikube_home_dir)
env["KUBECONFIG"] = str(minikube.kubeconfig)
Expand Down Expand Up @@ -119,8 +119,8 @@ def register(self, minikube_version=None, profile="default", k8s_version=None,
version = version_out[1:]
logger.info("Found minikube %s in %s", version, minikube_file)

profile_dir = get_cache_dir("minikube", profile)
self.minikube_home_dir = profile_dir / "home"
profile_dir = get_cache_dir("minikube")
self.minikube_home_dir = profile_dir
self.minikube_home_dir.mkdir(parents=True, exist_ok=True)
self.kubeconfig_dir = profile_dir / ".kube"
self.kubeconfig_dir.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 767a6cd

Please sign in to comment.