apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: tackles.tackle.io
spec:
  group: tackle.io
  versions:
    - name: v1alpha1
      served: true
      storage: true
      schema:
        # openAPIV3Schema is the schema for validating custom objects.
        openAPIV3Schema:
          type: object
          properties:
            spec:
              type: object
              properties:
                dockerhubConfigJson:
                  description: 'Tackle uses some images from Dockerhub. To avoid anonymous pulling of those images (and prevent Dockerhub''s pull rate limit), the Docker credentials can be provided using this input field. The value has to be the Base64 encode of the ''config.json'' file. (ref. https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/)'
                  type: string
            status:
              type: object
              properties:
                conditions:
                  items:
                    properties:
                      lastTransitionTime:
                        type: string
                      message:
                        type: string
                      observedGeneration:
                        type: integer
                      reason:
                        type: string
                      status:
                        type: string
                      type:
                        type: string
                    required:
                      - status
                      - type
                      - lastTransitionTime
                    type: object
                  type: array
      subresources:
        status: { }
  scope: Namespaced
  names:
    plural: tackles
    singular: tackle
    kind: Tackle
    shortNames:
      - ta
