You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When create Pod with Volcano as scheduler, Volcano controller will create a PodGroup automatically for this pod. The OwnerReferences field of this PodGroup will set to original pod. But BlockOwnerDeletion field in OwnerReference not set, so its value will be default value (i.e. false). Reference to official K8s document, only object with BlockOwnerDeletion set to true will be deleted when in cascading deletion. So when delete original pod the related PodGroup won't be deleted.
What you expected to happen:
Delete pod will delete related PodGroup also.
How to reproduce it (as minimally and precisely as possible):
Create a Pod and set schedulerName to volcano, then delete the pod see if related PodGroup deleted also.
Anything else we need to know?:
N/A
Environment:
Volcano Version: v0.3
Kubernetes version (use kubectl version): v1.14.6
Cloud provider or hardware configuration: N/A
OS (e.g. from /etc/os-release): N/A
Kernel (e.g. uname -a): N/A
Install tools: N/A
Others: N/A
The text was updated successfully, but these errors were encountered:
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
When create
Pod
with Volcano as scheduler, Volcano controller will create aPodGroup
automatically for this pod. TheOwnerReferences
field of thisPodGroup
will set to original pod. ButBlockOwnerDeletion
field inOwnerReference
not set, so its value will be default value (i.e. false). Reference to official K8s document, only object withBlockOwnerDeletion
set to true will be deleted when in cascading deletion. So when delete original pod the relatedPodGroup
won't be deleted.What you expected to happen:
Delete pod will delete related
PodGroup
also.How to reproduce it (as minimally and precisely as possible):
Create a
Pod
and setschedulerName
tovolcano
, then delete the pod see if relatedPodGroup
deleted also.Anything else we need to know?:
N/A
Environment:
kubectl version
): v1.14.6uname -a
): N/AThe text was updated successfully, but these errors were encountered: