You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The klusterlet CRD generated for kubernetes cluster which's version is <=1.16 is invalid
If we apply this CRD to a 1.16.3 kubernetes cluster, will get:
# kubectl apply -f operator/v1/0001_00_operator.open-cluster-management.io_klusterlets.crd.yaml
The CustomResourceDefinition "klusterlets.operator.open-cluster-management.io" is invalid:
* spec.validation.openAPIV3Schema.properties[spec].properties[registrationConfiguration].properties[featureGates].items.properties[mode].default: Forbidden: must not be set
* spec.validation.openAPIV3Schema.properties[spec].properties[workConfiguration].properties[featureGates].items.properties[mode].default: Forbidden: must not be set
I am considering if we can remove the default value of the feature gate like this, but it will be a dangerous change.
If you are using the featureGates configuration and no mode is configured, you will be hit. E.g:
So we are very cautious about this change and want to know if anyone uses it like 👆🏻 this.
This will not impact the upgrading, all existing clustermanager/klusterlet on the cluster must already have the mode value Disable. But for the new creating clustermanager/klusterlet, it is required to specify the mode value explicitly.
The klusterlet CRD generated for kubernetes cluster which's version is <=1.16 is invalid
If we apply this CRD to a 1.16.3 kubernetes cluster, will get:
Another validation result from GitHub action
The text was updated successfully, but these errors were encountered: