6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

feat: better object creation in "k8s start"

When running "tutor k8s start", it's unnecessary to attempt to create volumes
and namespace multiple times.
This commit is contained in:
Régis Behmo 2021-06-03 17:57:04 +02:00 committed by Régis Behmo
parent 900572fdae
commit 9b6b770dd7
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,8 @@ Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Improvement] Better Kubernetes object creation.
## v11.3.0 (2021-05-18)
- 💥[Security] Disable python-evaluated input by default as we don't run codejail.

View File

@ -239,8 +239,7 @@ def start(context: Context) -> None:
"--kustomize",
tutor_env.pathjoin(context.root),
"--selector",
# Here use `notin (job, xxx)` when there are other components to ignore
"app.kubernetes.io/component!=job",
"app.kubernetes.io/component notin (job,volume,namespace)",
)