Skip to content

add RawExtension type annotation

Calvin Yu请求将github/fork/RolandMa1986/fix-crd合并到master

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 RoleBase 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

合并请求报告