Skip to content

Commit 4d0907c

Browse files
authored
don't complain if extra_k3s_args not passed into config file (#78)
* don't complain if extra_k3s_args not passed in * update screenshot
1 parent ce6f314 commit 4d0907c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/screenshots/help_text.svg

Lines changed: 1 addition & 1 deletion
Loading

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "smol_k8s_lab"
3-
version = "0.11.1"
3+
version = "0.11.2"
44
description = "bootstrap simple projects on kubernetes with kind and k3s"
55
authors = ["Jesse Hitch <[email protected]>",
66
"Max Roby <[email protected]>"]

smol_k8s_lab/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def install_k8s_distro(k8s_distro=""):
8787
install_kind_cluster()
8888
elif k8s_distro == "k3s":
8989
from .k8s_distros.k3s import install_k3s_cluster
90-
install_k3s_cluster(USR_CONFIG_FILE['extra_k3s_args'])
90+
extra_args = USR_CONFIG_FILE.get('extra_k3s_args', [])
91+
install_k3s_cluster(extra_args)
9192
elif k8s_distro == "k0s":
9293
from .k8s_distros.k0s import install_k0s_cluster
9394
install_k0s_cluster()

0 commit comments

Comments
 (0)