istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/pilot/testdata/mcs-serviceexport-crd.yaml (about)

     1  # Copied from https://github.com/kubernetes-sigs/mcs-api/blob/master/config/crd/multicluster.x-k8s.io_serviceexports.yaml
     2  # Copyright 2020 The Kubernetes Authors.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  apiVersion: apiextensions.k8s.io/v1
    16  kind: CustomResourceDefinition
    17  metadata:
    18    name: serviceexports.{{ .Group }}
    19  spec:
    20    group: {{ .Group }}
    21    scope: Namespaced
    22    names:
    23      plural: serviceexports
    24      singular: serviceexport
    25      kind: ServiceExport
    26      shortNames:
    27        - svcex
    28    versions:
    29      - name: {{ .Version }}
    30        served: true
    31        storage: true
    32        subresources:
    33          status: {}
    34        additionalPrinterColumns:
    35          - name: Age
    36            type: date
    37            jsonPath: .metadata.creationTimestamp
    38        "schema":
    39          "openAPIV3Schema":
    40            description: ServiceExport declares that the Service with the same name and
    41              namespace as this export should be consumable from other clusters.
    42            type: object
    43            properties:
    44              apiVersion:
    45                description: 'APIVersion defines the versioned schema of this representation
    46                of an object. Servers should convert recognized schemas to the latest
    47                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    48                type: string
    49              kind:
    50                description: 'Kind is a string value representing the REST resource this
    51                object represents. Servers may infer this from the endpoint the client
    52                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    53                type: string
    54              metadata:
    55                type: object
    56              status:
    57                description: status describes the current state of an exported service.
    58                  Service configuration comes from the Service that had the same name
    59                  and namespace as this ServiceExport. Populated by the multi-cluster
    60                  service implementation's controller.
    61                type: object
    62                properties:
    63                  conditions:
    64                    type: array
    65                    items:
    66                      description: "ServiceExportCondition contains details for the current
    67                      condition of this service export. \n Once [KEP-1623](https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1623-standardize-conditions)
    68                      is implemented, this will be replaced by metav1.Condition."
    69                      type: object
    70                      required:
    71                        - status
    72                        - type
    73                      properties:
    74                        lastTransitionTime:
    75                          type: string
    76                          format: date-time
    77                        message:
    78                          type: string
    79                        reason:
    80                          type: string
    81                        status:
    82                          description: Status is one of {"True", "False", "Unknown"}
    83                          type: string
    84                          enum:
    85                            - "True"
    86                            - "False"
    87                            - Unknown
    88                        type:
    89                          description: ServiceExportConditionType identifies a specific
    90                            condition.
    91                          type: string
    92                    x-kubernetes-list-map-keys:
    93                      - type
    94                    x-kubernetes-list-type: map