add RawExtension type annotation
Created by: RolandMa1986
Signed-off-by: Roland.Ma rolandma@yunify.com
What type of PR is this? /kind bug
What this PR does / why we need it:
Role
Filed in RoleBas
e type was missing when upgrading CustomResourceDefinition from apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1.
According to the Kubernetes doc , we need to set the below properties:
type: object
properties:
foo:
x-kubernetes-embedded-resource: true
x-kubernetes-preserve-unknown-fields: true
Which issue(s) this PR fixes:
Fixes kubesphere#3794 (closed)
/cc @zryfish @wansir