Duplicates
I have searched the existing issues
Summary 💡
In some field attributes, it is necessary to verify the mutually exclusive condition of the attribute fields. The oneof field configuration cannot be generated using kubebuilder's mark, so it is necessary to implement the logical verification on the server side through webhook.
expect:
spec:
properties:
provider:
oneOf:
- required:
- static
- required:
- ldap
- required:
- oidc
- required:
- tls
properties:
ldap:
type: object
oidc:
type: object
static:
type: object
tls:
type: object
type: object
type: object
Actual kubebuilder can only be generated:
spec:
properties:
provider:
properties:
ldap:
type: object
oidc:
type: object
static:
type: object
tls:
type: object
type: object
type: object
Some useful links:
Duplicates
I have searched the existing issues
Summary 💡
In some field attributes, it is necessary to verify the mutually exclusive condition of the attribute fields. The oneof field configuration cannot be generated using kubebuilder's mark, so it is necessary to implement the logical verification on the server side through webhook.
expect:
Actual kubebuilder can only be generated:
Some useful links: