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
After merging #1485, the Explainer field on a SeldonDeployment can now be nil. However, previously we used "empty" explainers (i.e. entries with all fields empty) to signal that there was no explainer configured.
This means that, if you are running a version previous to SC 1.1, Kubernetes will be storing your SeldonDeployment resources with an "empty" explainers like the one below:
The problem comes when you update to SC 1.1. Since it now considers that no explainer is defined by setting a nil pointer on the explainer field, it will consider that all previous SeldonDeployment entries have an explainer configured. Therefore, it will attempt to deploy a mis-configured explainer for all of them:
NAME READY STATUS RESTARTS AGE
mymodel-mymodel-0-696f48c588-2tmgq 2/2 Running 0 59m
mymodel-mymodel-explainer-54cbf97f75-8zhlv 0/1 CrashLoopBackOff 15 59m
Potential fixes
Fix ideas that come to mind are:
Using the mutating webhook to change "empty" explainers to nil. I'm not sure if this would apply to existing SeldonDeployments after an update though.
Checking on the validating webhook if an explainer is "empty" and raise an error as it's mis-configured. This would cause an error for all existing SeldonDeployments so probably not advised.
Going back to the old way of checking if an explainer is not configured. That would mean that the check would look like:
ifp.Explainer!=nil&&p.Explainer.Type!="" {
...
}
The text was updated successfully, but these errors were encountered:
Context
After merging #1485, the
Explainer
field on aSeldonDeployment
can now benil
. However, previously we used "empty" explainers (i.e. entries with all fields empty) to signal that there was no explainer configured.This means that, if you are running a version previous to SC 1.1, Kubernetes will be storing your
SeldonDeployment
resources with an "empty" explainers like the one below:Issue
The problem comes when you update to SC 1.1. Since it now considers that no explainer is defined by setting a
nil
pointer on the explainer field, it will consider that all previousSeldonDeployment
entries have an explainer configured. Therefore, it will attempt to deploy a mis-configured explainer for all of them:Potential fixes
Fix ideas that come to mind are:
nil
. I'm not sure if this would apply to existingSeldonDeployments
after an update though.SeldonDeployments
so probably not advised.The text was updated successfully, but these errors were encountered: