-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation fails if componentSpecs.metadata.creationTimestamp is not specified #1061
Comments
According to @phsiao https://github.com/kubernetes/apimachinery/blob/master/pkg/apis/meta/v1/types.go#L196 the timestamp should be optional |
I think the cause is our CRD needs to be updated. The old one before the rewrite has this, and the new one likely is not defaulting
but it is strange with this line
|
The defaulting of the timestamp seems incorrect. Do you have a simple example that recreates the issue? |
We were using a CRD with this line. https://github.com/SeldonIO/seldon-core/blob/v0.4.1/kustomize/seldon-core-operator/base/seldondeployments.machinelearning.seldon.io-crd.yaml#L196 So you can expect creationTime has to meet a specific format, and null does not seem to be a valid value, so I think the defaulting was the one making it work before. New version of CRD does not have this problem, the entire MetatData is declared as an object with no specifics, so it does not have this problem. |
Maybe connected to kubernetes/kubernetes#84880 |
if you could check if this works with the latest master 0.5.1-SNAPSHOT |
I don't think this one is related to the items (which might be relevant for #1072), rather, just older version of CRD has explicit schema for metadata, while newer version of CRD treats it as an object. |
Please reopen if still an issue |
Seldon version: v0.5
If creationTimestamp is not in componentSpecs.metadata, validation fails and k8s fails to apply the changes.
To fix, we need to add metadata.creationTimestamp:
The text was updated successfully, but these errors were encountered: