---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition

metadata:
  name: settings.longhorn.io
  labels:
    longhorn-manager: Setting

spec:
  group: longhorn.io
  names:
    kind: Setting
    listKind: SettingList
    plural: settings
    shortNames:
      - lhs
    singular: setting
  scope: Namespaced
  versions:
    - name: v1beta1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          x-kubernetes-preserve-unknown-fields: true
      additionalPrinterColumns:
        - name: Value
          type: string
          description: The value of the setting
          jsonPath: .value
        - name: Age
          type: date
          jsonPath: .metadata.creationTimestamp

...
