mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-24 22:08:24 +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:
parent
c4fd3062f0
commit
c8ce86b979
@ -0,0 +1 @@
|
|||||||
|
[Bugfix] Do not fail on start when there are not persistent volume claims to apply (by @snglth)
|
@ -296,18 +296,11 @@ def start(context: K8sContext, names: List[str]) -> None:
|
|||||||
names = names or ["all"]
|
names = names or ["all"]
|
||||||
for name in names:
|
for name in names:
|
||||||
if name == "all":
|
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(
|
kubectl_apply(
|
||||||
context.root,
|
context.root,
|
||||||
"--selector",
|
"--selector",
|
||||||
"app.kubernetes.io/component notin (job,volume,namespace)",
|
"app.kubernetes.io/component notin (job,namespace)",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
kubectl_apply(
|
kubectl_apply(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user