---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.8.0
  creationTimestamp: null
  name: privateendpoints.observability.pingcap.com
spec:
  group: observability.pingcap.com
  names:
    kind: PrivateEndpoint
    listKind: PrivateEndpointList
    plural: privateendpoints
    singular: privateendpoint
  scope: Namespaced
  versions:
  - 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
              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
              serviceID:
                type: string
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
