cloud-ark / kubeplus

Kubernetes Operator for multi-instance multi-tenancy
https://cloudark.io/
Apache License 2.0
654 stars 78 forks source link

fixes #1162 #1163

Closed eminalparslan closed 1 year ago

eminalparslan commented 1 year ago
devdattakulkarni commented 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.