-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
handle simple enum types #16
Comments
Current behavior is to omit the enum part, and just treat it (in this example) as a simple String. operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string becomes
A complete example can be found in the Linkerd 2.11 These CRDs actually have several issues with the current generation, but I'll make separate issues for those. |
Handling simple enum's like this turns out not to be particularly difficult. Provided there are no other cases that can set |
Currently, I think we will error out, or omit enum parts of the schema.
It would be helpful to either find a good / official CRD from somewhere that relies on enums, or even better, a POC PR that showcases how to parse them.
The text was updated successfully, but these errors were encountered: