Closed eminalparslan closed 1 year ago
@eminalparslan 👍 on the research about mix-typed arrays. As you have correctly observed, setting x-kubernetes-preserve-unknown-fields: true
will opt-out of validation/pruning. That effectively disables the Structural schema checking for CRDs. We don't want to go that route.
I managed to update kubeconiggenerator.py to correctly handle mixed-type arrays using "anyOf" construct. I have merged these changes. You can take a look in kubeconfiggenerator.py.
x-kubernetes-preserve-unknown-fields: true
on the mixed-type arrays, which opts out of pruning the untyped array.