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
Default() is called after validation in Reconcile function in every controller so I think we can remove Default() in onOwnerCreateFunc (uploaded PR for this #1629).
Also, as #1564 addressed, the controller should immediately return after validation fails.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Reproduce
Deploy below Pytorch job
Operator fails with below log
Analysis
Default()
called before validation inonOwnerCreateFunc
.It assumes a container exists, so panic occurs with
index out of range
.Possible solution
Default()
is called after validation inReconcile
function in every controller so I think we can removeDefault()
inonOwnerCreateFunc
(uploaded PR for this #1629).Also, as #1564 addressed, the controller should immediately return after validation fails.
The text was updated successfully, but these errors were encountered: