Skip to content

Commit

Permalink
fix: do not fail on start when there are no persistent volume claims
Browse files Browse the repository at this point in the history
Persistent volume claims are being created alongside with other objects
to acheive that.
  • Loading branch information
snglth authored and regisb committed Jun 25, 2024
1 parent c4fd306 commit c8ce86b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Bugfix] Do not fail on start when there are not persistent volume claims to apply (by @snglth)
11 changes: 2 additions & 9 deletions tutor/commands/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Create everything except jobs
kubectl_apply(
context.root,
"--wait",
"--selector",
"app.kubernetes.io/component=volume",
)
# Create everything else 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(
Expand Down

0 comments on commit c8ce86b

Please sign in to comment.