---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.17.3
  name: sharedpoolagents.agent.observability.pingcap.com
spec:
  group: agent.observability.pingcap.com
  names:
    kind: SharedPoolAgent
    listKind: SharedPoolAgentList
    plural: sharedpoolagents
    singular: sharedpoolagent
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - 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: SharedPoolAgent is the Schema for the sharedpoolagents 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: SharedPoolAgentSpec defines the desired state of SharedPoolAgent.
            properties:
              kubernetesClusterName:
                type: string
              o11y:
                properties:
                  applicationId:
                    type: string
                  bizType:
                    type: string
                  tenantId:
                    type: string
                required:
                - applicationId
                - bizType
                - tenantId
                type: object
              sharedPoolId:
                type: string
            required:
            - kubernetesClusterName
            - o11y
            - sharedPoolId
            type: object
          status:
            description: SharedPoolAgentStatus defines the observed state of SharedPoolAgent.
            properties:
              phase:
                type: string
            required:
            - phase
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
