6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-24 14:08:23 +00:00

fix: do not fail on start when there are no persistent volume claims

Persistent volume claims are being created alongside with other objects
to acheive that.
This commit is contained in:
Illia Shestakov 2024-04-29 15:12:29 +03:00 committed by Régis Behmo
parent c4fd3062f0
commit c8ce86b979
2 changed files with 3 additions and 9 deletions

View File

@ -0,0 +1 @@
[Bugfix] Do not fail on start when there are not persistent volume claims to apply (by @snglth)

View File

@ -296,18 +296,11 @@ def start(context: K8sContext, names: List[str]) -> None:
names = names or ["all"]
for name in names:
if name == "all":
# Create volumes
kubectl_apply(
context.root,
"--wait",
"--selector",
"app.kubernetes.io/component=volume",
)
# Create everything else except jobs
# Create everything except jobs
kubectl_apply(
context.root,
"--selector",
"app.kubernetes.io/component notin (job,volume,namespace)",
"app.kubernetes.io/component notin (job,namespace)",
)
else:
kubectl_apply(