---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: privatelinkendpoints.dedicated.regionalserver.tidbcloud.com
spec:
  group: dedicated.regionalserver.tidbcloud.com
  names:
    categories:
    - regionserver
    kind: PrivateLinkEndpoint
    listKind: PrivateLinkEndpointList
    plural: privatelinkendpoints
    singular: privatelinkendpoint
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .status.phase
      name: PHASE
      type: string
    - jsonPath: .metadata.creationTimestamp
      name: AGE
      type: date
    name: v1alpha1
    schema:
      openAPIV3Schema:
        description: PrivateLinkEndpoint is the Schema for the PrivateLinkEndpoint
          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:
            properties:
              dnsRecords:
                additionalProperties:
                  type: string
                type: object
              provider:
                type: string
              region:
                type: string
              rootDomainName:
                type: string
              serviceName:
                type: string
              serviceRegion:
                type: string
              tags:
                additionalProperties:
                  type: string
                type: object
              vpcRef:
                properties:
                  name:
                    type: string
                  namespace:
                    type: string
                required:
                - name
                - namespace
                type: object
              zones:
                items:
                  type: string
                type: array
            required:
            - provider
            - region
            - serviceName
            - vpcRef
            type: object
          status:
            properties:
              endpointAddress:
                type: string
              id:
                type: string
              message:
                type: string
              phase:
                type: string
              zonesAddresses:
                additionalProperties:
                  type: string
                description: ZonesAddresses represents endpoint addresses in every
                  availability zones
                type: object
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
