---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.17.3
  name: tidbgroupagents.agent.observability.pingcap.com
spec:
  group: agent.observability.pingcap.com
  names:
    kind: TiDBGroupAgent
    listKind: TiDBGroupAgentList
    plural: tidbgroupagents
    singular: tidbgroupagent
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .spec.clusterId
      name: ClusterID
      type: string
    - jsonPath: .spec.sharedPoolId
      name: SharedPoolID
      type: string
    - jsonPath: .spec.o11y.tenantId
      name: TenantID
      type: string
    - jsonPath: .spec.kubernetesClusterName
      name: Cluster
      type: string
    - jsonPath: .status.phase
      name: Phase
      type: string
    - jsonPath: .metadata.creationTimestamp
      name: Age
      type: date
    name: v2
    schema:
      openAPIV3Schema:
        description: TiDBGroupAgent is the Schema for the tidbgroupagents 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:
            description: TiDBGroupAgentSpec defines the desired state of TiDBGroupAgent.
            properties:
              clusterId:
                type: string
              kubernetesClusterName:
                type: string
              o11y:
                properties:
                  applicationId:
                    type: string
                  bizType:
                    type: string
                  tenantId:
                    type: string
                required:
                - applicationId
                - bizType
                - tenantId
                type: object
              sharedPoolId:
                type: string
              tidbGroup:
                type: string
            required:
            - clusterId
            - kubernetesClusterName
            - o11y
            - sharedPoolId
            - tidbGroup
            type: object
          status:
            description: TiDBGroupAgentStatus defines the observed state of TiDBGroupAgent.
            properties:
              phase:
                type: string
            required:
            - phase
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
