feat: add python version check (#1176)

* feat: add python version check

Signed-off-by: Devin Buhl <devin@buhl.casa>

* chore: formatting

Signed-off-by: Devin Buhl <devin@buhl.casa>

* test python 3.10

* chore: taskfile formating

Signed-off-by: Devin Buhl <devin@buhl.casa>

* chore: python 3.11 is minimum

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-16 21:13:58 -05:00
1 parent 35177471b5
commit edbcf28139
10 files changed
+117 -147

No files matched your search

+14 -9
View File
@@ -5,6 +5,9 @@ env:
DISABLE_TELEMETRY: "true"
DISABLE_UPGRADE_CHECK: "true"
vars:
K0S_CONFIG_FILE: "{{.ROOT_DIR}}/k0s-config.yaml"
tasks:
apply:
@@ -13,11 +16,10 @@ tasks:
- k0sctl apply --config {{.K0S_CONFIG_FILE}}
- task: kubeconfig
preconditions:
- sh: command -v k0sctl
- sh: test -f {{.K0S_CONFIG_FILE}}
- { msg: "Missing K0s config file", sh: "test -f {{.K0S_CONFIG_FILE}}" }
reset:
desc: Resets k0s cluster
nuke:
desc: Nuke the k0s cluster
deps: [":ansible:deps"]
cmds:
- k0sctl reset --config {{.K0S_CONFIG_FILE}}
@@ -25,16 +27,19 @@ tasks:
vars:
playbook: cluster-nuke
preconditions:
- sh: command -v k0sctl
- sh: test -f {{.K0S_CONFIG_FILE}}
- { msg: "Missing K0s config file", sh: "test -f {{.K0S_CONFIG_FILE}}" }
kubeconfig:
desc: Gets k0s cluster kubeconfig
cmd: k0sctl kubeconfig --config {{.K0S_CONFIG_FILE}} > {{.KUBECONFIG_FILE}}
cmds:
- k0sctl kubeconfig --config {{.K0S_CONFIG_FILE}} > {{.KUBECONFIG_FILE}}
sources:
- "{{.K0S_CONFIG_FILE}}"
generates:
- "{{.KUBECONFIG_FILE}}"
preconditions:
- sh: command -v k0sctl
- sh: test -f {{.K0S_CONFIG_FILE}}
- { msg: "Missing K0s config file", sh: "test -f {{.K0S_CONFIG_FILE}}" }
.reset:
internal: true
cmd: rm -rf {{.K0S_CONFIG_FILE}}