apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    build.aep.asag.io/source: svc-api
    build.aep.asag.io/version: 1.0.6
    controller-gen.kubebuilder.io/version: v0.10.0
  creationTimestamp: null
  name: instances.service.aep.asag.io
spec:
  group: service.aep.asag.io
  names:
    categories:
      - aep
    kind: Instance
    listKind: InstanceList
    plural: instances
    shortNames:
      - in
      - ins
      - aepi
      - aepins
      - aepinstance
      - aepinstances
    singular: instance
  scope: Namespaced
  versions:
    - additionalPrinterColumns:
        - jsonPath: .status.phase
          name: Status
          type: string
        - jsonPath: .metadata.ownerReferences[?(@.controller==true)].kind
          name: OwnerKind
          priority: 2
          type: string
        - jsonPath: .metadata.ownerReferences[?(@.controller==true)].name
          name: OwnerName
          priority: 2
          type: string
        - jsonPath: .metadata.creationTimestamp
          name: Age
          type: date
        - jsonPath: .status.reason
          name: Reason
          priority: 2
          type: string
      name: v1
      schema:
        openAPIV3Schema:
          description: The service definition in a specific version
          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:
              description: Spec of this resource
              properties:
                dependencies:
                  additionalProperties:
                    type: string
                  description: Dependencies of the current instance. Maps alias to dependency instance name. Defining a dependency allows clusters of this instance to consume their endpoints.
                  type: object
                flags:
                  description: A list of flags to be set in the container
                  items:
                    description: Flags to be assigned to the node
                    properties:
                      key:
                        description: The key
                        minLength: 1
                        type: string
                      to:
                        description: Whether the flag is written to a label where it is searchable by the topology lookup (but charset and length limited) or to an annotation where these limitations dont apply (but not searchable)
                        enum:
                          - label
                          - annotation
                        type: string
                      value:
                        description: The value in any type
                        x-kubernetes-preserve-unknown-fields: true
                    required:
                      - key
                      - to
                      - value
                    type: object
                  type: array
              type: object
            status:
              description: Status of this resource
              properties:
                phase:
                  description: Phase to describe the overall current status
                  enum:
                    - error
                    - waiting
                    - ok
                    - ready
                  type: string
                reason:
                  description: A brief human-readable message indicating details about why this resource is in this state.
                  type: string
              type: object
          required:
            - metadata
            - spec
          type: object
      served: true
      storage: true
      subresources:
        status: {}
