apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: templateinstances.tmax.io
spec:
  group: tmax.io
  versions:
  - name: v1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          apiVersion:
            type: string
          kind:
            type: string
          metadata:
            properties:
              generateName:
                type: string
              name:
                type: string
            type: object
          spec:
            type: object
            properties:
              requester:
                type: object
                properties:
                  extra:
                    type: object
                    #x-kubernetes-embedded-resource: true
                    x-kubernetes-preserve-unknown-fields: true
                  groups:
                    type: array
                    items:
                      type: string
                  uid:
                    type: string
                  username:
                    type: string
              secret:
                type: object
                properties:
                  name:
                    type: string
              template:
                type: object
                properties:
                  apiVersion:
                    type: string
                  kind:
                    type: string
                  labels:
                    additionalProperties:
                      type: string
                    type: object
                  message:
                    type: string
                  metadata:
                    properties:
                      generateName:
                        type: string
                      name:
                        type: string
                    type: object
                  objects:
                    items:
                      type: object
                      x-kubernetes-embedded-resource: true
                      x-kubernetes-preserve-unknown-fields: true
                    type: array
                  parameters:
                    items:
                      properties:
                        description:
                          type: string
                        displayName:
                          type: string
                        from:
                          type: string
                        generate:
                          type: string
                        name:
                          type: string
                        required:
                          type: boolean
                        value:
                          type: string
                      required:
                      - name
                      type: object
                    type: array
          status:
            type: object
            properties:
              conditions:
                items:
                  properties:
                    lastTransitionTime:
                      format: date-time
                      type: string
                    message:
                      type: string
                    reason:
                      type: string
                    status:
                      type: string
                    type:
                      type: string
                  required:
                    - type
                  type: object
                type: array
              objects:
                items:
                  properties:
                    ref:
                      type: object
                      properties:
                        apiVersion:
                          type: string
                        fieldPath:
                          type: string
                        kind:
                          type: string
                        name:
                          type: string
                        namespace:
                          type: string
                        resourceVersion:
                          type: string
                        uid:
                          type: string
                  required:
                  - ref
                  type: object
                type: array
    subresources:
      status: {}
  scope: Namespaced
  names:
    plural: templateinstances
    singular: templateinstance
    kind: TemplateInstance
    shortNames:
    - ti

            

  
