# !kustomize build https://github.com/grafana-operator/grafana-operator/tree/v4.9.0/config/crd
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.6.2
  creationTimestamp: null
  name: grafanafolders.integreatly.org
spec:
  group: integreatly.org
  names:
    kind: GrafanaFolder
    listKind: GrafanaFolderList
    plural: grafanafolders
    singular: grafanafolder
  scope: Namespaced
  versions:
    - name: v1alpha1
      schema:
        openAPIV3Schema:
          description: GrafanaFolder is the Schema for the grafana folders and folderpermissions API
          properties:
            apiVersion:
              description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
              type: string
            kind:
              description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
              type: string
            metadata:
              type: object
            spec:
              properties:
                permissions:
                  description: FolderPermissions shall contain the _complete_ permissions for the folder. Any permission not listed here, will be removed from the folder.
                  items:
                    properties:
                      permissionLevel:
                        type: integer
                      permissionTarget:
                        type: string
                      permissionTargetType:
                        type: string
                    required:
                      - permissionLevel
                      - permissionTarget
                      - permissionTargetType
                    type: object
                  type: array
                title:
                  description: FolderName is the display-name of the folder and must match CustomFolderName of any GrafanaDashboard you want to put in
                  type: string
              required:
                - title
              type: object
          type: object
      served: true
      storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
