---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.16.3
  name: privatelinkendpoints.eks.infra.pingcap.com
spec:
  group: eks.infra.pingcap.com
  names:
    kind: PrivateLinkEndpoint
    listKind: PrivateLinkEndpointList
    plural: privatelinkendpoints
    singular: privatelinkendpoint
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: PrivateLinkEndpoint is the Schema for the privatelinkendpoints
          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: PrivateLinkEndpointSpec defines the desired state of PrivateLinkEndpoint
            properties:
              networkName:
                description: |-
                  NetworkName references the Network where the Cluster is hosted,
                  the Network must exist in the same namespace as Cluster
                type: string
              region:
                description: Region specifies the region for the vpc endpoint.
                type: string
              serviceName:
                description: ServiceName references the privatelink endpoint service
                  name
                type: string
              zones:
                description: Zones references the privatelink endpoint where the zone
                  is deployed
                items:
                  type: string
                type: array
            required:
            - networkName
            - region
            - serviceName
            type: object
          status:
            description: PrivateLinkEndpointStatus defines the observed state of PrivateLinkEndpoint
            properties:
              atProvider:
                description: sync the status of private link from aws provider, so
                  relevant fields will be placed here
                properties:
                  dnsEntries:
                    description: (Interface endpoint) The address for the endpoint.
                    items:
                      properties:
                        dnsName:
                          description: (Interface endpoint) The address for the endpoint.
                          type: string
                        zone:
                          type: string
                      type: object
                    type: array
                  endpointID:
                    type: string
                  state:
                    type: string
                type: object
              errorMessage:
                description: error message
                type: string
              phase:
                description: The state of the VPC endpoint.
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
