apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: localpathprovisioners.deckhouse.io
  labels:
    heritage: deckhouse
    module: local-path-provisioner
spec:
  group: deckhouse.io
  scope: Cluster
  names:
    plural: localpathprovisioners
    singular: localpathprovisioner
    kind: LocalPathProvisioner
  preserveUnknownFields: false
  versions:
  - name: v1alpha1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        description: |
          Parameters of the `local-path-provisioner` instance.
        properties:
          spec:
            type: object
            required:
            - path
            properties:
              nodeGroups:
                type: array
                items:
                  type: string
                description: |
                  Select nodeGroups for storageClass allowedTopologies.
                example:
                - master
                - worker
              path:
                type: string
                description: |
                  Node root path for PV's.
                example: "/opt/local-path-provisioner"
