Bug 1822115
| Summary: | kubeapiserver logs show all prom-operator custom resources have an "has invalid property: anyOf" | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Lili Cosic <lcosic> |
| Component: | Monitoring | Assignee: | Paul Gier <pgier> |
| Status: | CLOSED DUPLICATE | QA Contact: | Junqi Zhao <juzhao> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.5 | CC: | alegrand, anpicker, erooth, kakkoyun, lcosic, mloibl, pkrupa, sttts, surbania |
| Target Milestone: | --- | ||
| Target Release: | 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | groom | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-30 06:49:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lili Cosic
2020-04-08 09:57:39 UTC
Paul since you worked on this, I assigned it to you as you are most familiar with that part, but bugboss feel free to assign to someone else as well. Note: I suspect this has to do with the CRD v1 vs CRD v1beta1 bug we have been seeing, the CRD is registered agains the v1beta1, we should try to switch to v1 CRD api in prom-operator and see if this is fixed by that. This seems to be related to the switch to a structural schema. We've been using the "anyOf" property since before the use of controller-gen, however, the switch to a structural schema via "preserveUnknownFields: false" the API server is doing additional validation that was not done previously. AFAICT, our CRD specification is correct according to the docs, but I'm still investigating how to fix this error. *** This bug has been marked as a duplicate of bug 1786269 *** |