Skupper CRD: links-skupper-io

Source: human/skupper/config/crd/bases/skupper_link_crd.yaml

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: links.skupper.io
spec:
  group: skupper.io
  versions:
    - name: v2alpha1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          description: |-
            A link is a channel for communication between sites.
            Links carry application connections and requests.  A set of linked
            sites constitutes a network.
 
            A Link resource specifies remote connection endpoints and TLS
            credentials for establishing a mutual TLS connection to a remote
            site.  To create an active link, the remote site must first enable
            _link access_.  Link access provides an external access point for
            accepting links.
 
            **Note:** Links are not usually created directly.  Instead, you can
            use an AccessToken to obtain a link.
          type: object
          properties:
            spec:
              type: object
              properties:
                endpoints:
                  description : |-
                    An array of connection endpoints. Each item has a name, host,
                    port, and group.
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      host:
                        type: string
                      port:
                        type: string
                      group:
                        type: string
                tlsCredentials:
                  description: |-
                    The name of a bundle of certificates used for mutual TLS
                    router-to-router communication.  The bundle contains the
                    client certificate and key and the trusted server certificate
                    (usually a CA).
 
                    On Kubernetes, the value is the name of a Secret in the
                    current namespace.
 
                    On Docker, Podman, and Linux, the value is the name of a
                    directory under `input/certs/` in the current namespace.
                  type: string
                cost:
                  description: |-
                    The configured routing cost of sending traffic over the link.
                  type: integer
                settings:
                  description: |-
                    A map containing additional settings.  Each map entry has a
                    string name and a string value.
 
                    **Note:** In general, we recommend not changing `settings` from
                    their default values.
                  type: object
                  additionalProperties:
                    type: string
              required:
                - endpoints
            status:
              type: object
              properties:
                status:
                  description: |-
                    The current state of the resource.
                    - `Pending`: The resource is being processed.
                    - `Error`: There was an error processing the resource. See `message` for more information.
                    - `Ready`: The resource is ready to use.
                  type: string
                message:
                  description: |-
                    A human-readable status message. Error messages are reported here.
                  type: string
                remoteSiteId:
                  description: |-
                    The unique ID of the site linked to.
                  type: string
                remoteSiteName:
                  description: |-
                    The name of the site linked to.
                  type: string
                conditions:
                  type: array
                  description: |-
                    A set of named conditions describing the current state of the resource.
 
                    - `Configured`: The link configuration has been applied to the router.
                    - `Operational`: The link to the remote site is active.
                    - `Ready`: The link is ready for use. All other conditions are true.
                  items:
                    type: object
                    properties:
                      lastTransitionTime:
                        format: date-time
                        type: string
                      message:
                        maxLength: 32768
                        type: string
                      observedGeneration:
                        format: int64
                        minimum: 0
                        type: integer
                      reason:
                        maxLength: 1024
                        minLength: 1
                        pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
                        type: string
                      status:
                        enum:
                        - "True"
                        - "False"
                        - Unknown
                        type: string
                      type:
                        maxLength: 316
                        pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
                        type: string
                    required:
                    - lastTransitionTime
                    - message
                    - reason
                    - status
                    - type
      subresources:
        status: {}
      additionalPrinterColumns:
      - name: Status
        type: string
        description: The status of the link
        jsonPath: .status.status
      - name: Remote Site
        type: string
        description: The name of the site linked to
        jsonPath: .status.remoteSiteName
      - name: Message
        type: string
        description: Any human readable message relevant to the link
        jsonPath: .status.message
  scope: Namespaced
  names:
    plural: links
    singular: link
    kind: Link
    shortNames:
    - ln