
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: components.dapr.io
  labels:
    app.kubernetes.io/part-of: "dapr"
spec:
  group: dapr.io
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: Component describes an Dapr component type.
        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
          auth:
            description: Auth represents authentication details for the component.
            properties:
              secretStore:
                type: string
            required:
            - secretStore
            type: object
          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
          scopes:
            items:
              type: string
            type: array
          spec:
            description: ComponentSpec is the spec for a component.
            properties:
              ignoreErrors:
                type: boolean
              initTimeout:
                type: string
              metadata:
                items:
                  description: NameValuePair is a name/value pair.
                  properties:
                    envRef:
                      description: EnvRef is the name of an environmental variable
                        to read the value from.
                      type: string
                    name:
                      description: Name of the property.
                      type: string
                    secretKeyRef:
                      description: SecretKeyRef is the reference of a value in a secret
                        store component.
                      properties:
                        key:
                          description: Field in the secret.
                          type: string
                        name:
                          description: Secret name.
                          type: string
                      required:
                      - name
                      type: object
                    value:
                      description: Value of the property, in plaintext.
                      x-kubernetes-preserve-unknown-fields: true
                  required:
                  - name
                  type: object
                type: array
              type:
                type: string
              version:
                type: string
            required:
            - metadata
            - type
            - version
            type: object
        type: object
    served: true
    storage: true
  names:
    kind: Component
    plural: components
    singular: component
    categories:
    - all
    - dapr
  scope: Namespaced
