---
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:
              authType:
                description: |-
                  AuthType is the MSK VPC connection authentication scheme.
                  Only used when Type == PrivateLinkEndpointTypeAmazonMSK.
                type: string
              dnsRecords:
                additionalProperties:
                  type: string
                type: object
              mskArn:
                description: |-
                  MSKArn is the ARN of the customer's Amazon MSK cluster.
                  Only used when Type == PrivateLinkEndpointTypeAmazonMSK.
                type: string
              ownership:
                description: |-
                  ResourceOwnership identifies the SharedPool that owns a DPM resource.
                  The parent DataPlane association remains on the owning resource.
                properties:
                  sharedPoolID:
                    minLength: 1
                    type: string
                required:
                - sharedPoolID
                type: object
              provider:
                type: string
              region:
                type: string
              rootDomainName:
                type: string
              serviceName:
                type: string
              serviceRegion:
                type: string
              tags:
                additionalProperties:
                  type: string
                type: object
              type:
                description: |-
                  Type distinguishes the private-link model. Empty defaults to
                  PrivateLinkEndpointTypeVPCEndpointService for backward compatibility.
                type: string
              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
            x-kubernetes-validations:
            - message: ownership is immutable
              rule: has(self.ownership) == has(oldSelf.ownership) && (!has(self.ownership)
                || self.ownership == oldSelf.ownership)
          status:
            properties:
              bootstrapBroker:
                description: BootstrapBroker is the MSK VPC-connectivity bootstrap
                  broker string (Amazon MSK only).
                type: string
              endpointAddress:
                type: string
              id:
                type: string
              message:
                type: string
              phase:
                type: string
              vpcConnectionArn:
                description: VPCConnectionArn is the ARN of the created MSK VPC connection
                  (Amazon MSK only).
                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: {}
