apiVersion:  apiextensions.k8s.io/v1
kind:         CustomResourceDefinition
metadata:
  name: testresources.github.com.historyliao 
spec:
  group:       github.com.historyliao
  versions:
    - name: v1beta1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          type: object
          properties:
            spec:
              type: object
              properties:
                command:
                  pattern:  ^(echo).*
                  type:     string
                customProperty:
                  type:  string
  names:
    kind:       TestResource
    plural:     testresources
  scope: Namespaced
