---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    helm.sh/resource-policy: keep
    controller-gen.kubebuilder.io/version: v0.17.3
  name: privateendpoints.observability.pingcap.com
spec:
  group: observability.pingcap.com
  names:
    kind: PrivateEndpoint
    listKind: PrivateEndpointList
    plural: privateendpoints
    singular: privateendpoint
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .status.phase
      name: PHASE
      type: string
    - jsonPath: .metadata.creationTimestamp
      name: AGE
      type: date
    name: v1
    schema:
      openAPIV3Schema:
        description: PrivateEndpoint is the Schema for the privateEndpoint 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: PrivateEndpointSpec defines the desired state of PrivateEndpoint
            properties:
              aws:
                properties:
                  accountID:
                    description: AccountID is the account id of aws resource
                    type: string
                  region:
                    description: Region is the region of aws resource
                    type: string
                  securityGroupIDs:
                    description: SecurityGroupIDs is the security group id of endpoint
                    items:
                      type: string
                    type: array
                  serviceDNSName:
                    description: ServiceDNSName is the dns name of  privatelink service
                    type: string
                  serviceName:
                    description: ServiceName is the name of  privatelink service
                    type: string
                  subnetIDs:
                    description: SubnetIDs is the subnet id of endpoint
                    items:
                      type: string
                    type: array
                  tagSpecifications:
                    additionalProperties:
                      type: string
                    description: TagSpecifications is the tag of endpoint when create
                    type: object
                  vpcEndpointType:
                    description: VPCEndpointType is the type of endpoint
                    type: string
                  vpcID:
                    description: VPCID is the vpc id  where to create the endpoint
                    type: string
                required:
                - accountID
                - region
                type: object
              azure:
                properties:
                  network:
                    description: Network is the network where to create the endpoint
                    type: string
                  projectID:
                    description: SubscriptionID is the subscription id of dataplane
                      resource
                    type: string
                  region:
                    description: Region is the region of dataplane resource
                    type: string
                  resourceGroup:
                    description: ResourceGroup is the resource group of dataplane
                      resource
                    type: string
                  serviceName:
                    description: ServiceName is the id of privatelink service
                    type: string
                  subnet:
                    description: Subnet is the subnetwork where to create the endpoint
                    type: string
                  tagSpecifications:
                    description: TagSpecifications is the tag of endpoint when create
                    items:
                      additionalProperties:
                        type: string
                      type: object
                    type: array
                required:
                - projectID
                - region
                type: object
              gcp:
                properties:
                  network:
                    description: Network is the network where to create the endpoint
                    type: string
                  projectID:
                    description: ProjectID is the project id of gcp resource
                    type: string
                  region:
                    description: Region is the region of gcp resource
                    type: string
                  serviceDNSName:
                    description: ServiceDNSName is the dns name of  privatelink service
                    type: string
                  serviceName:
                    description: ServiceName is the name of  privatelink service
                    type: string
                  subnet:
                    description: Subnet is the subnetwork where to create the endpoint
                    type: string
                  tagSpecifications:
                    description: TagSpecifications is the tag of endpoint when create
                    items:
                      additionalProperties:
                        type: string
                      type: object
                    type: array
                required:
                - projectID
                - region
                type: object
              namePerfix:
                type: string
              privateEndpointServiceName:
                description: we will use this name to check endpoint service is ready
                  or not,the service must be ready before create endpoint
                type: string
            type: object
          status:
            description: PrivateEndpointStatus defines the observed state of PrivateEndpoint
            properties:
              phase:
                description: Phase is the now status for EndpointService resource
                type: string
              privateIP:
                type: string
              serviceID:
                type: string
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
    subresources:
      status: {}
