---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.14.0
  name: meshservices.kuma.io
spec:
  group: kuma.io
  names:
    categories:
    - kuma
    kind: MeshService
    listKind: MeshServiceList
    plural: meshservices
    singular: meshservice
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        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: Spec is the specification of the Kuma MeshService resource.
            properties:
              ports:
                items:
                  properties:
                    port:
                      format: int32
                      type: integer
                    protocol:
                      default: tcp
                      description: Protocol identifies a protocol supported by a service.
                      type: string
                    targetPort:
                      format: int32
                      type: integer
                  required:
                  - port
                  type: object
                type: array
                x-kubernetes-list-map-keys:
                - port
                - protocol
                x-kubernetes-list-type: map
              selector:
                properties:
                  dataplaneTags:
                    additionalProperties:
                      type: string
                    type: object
                type: object
            type: object
          status:
            description: Status is the current status of the Kuma MeshService resource.
            properties:
              addresses:
                items:
                  properties:
                    hostname:
                      type: string
                  type: object
                type: array
              tls:
                properties:
                  status:
                    enum:
                    - Ready
                    - NotReady
                    type: string
                type: object
              vips:
                items:
                  properties:
                    ip:
                      type: string
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
