|
| 1 | +# Copyright 2020 The Kubernetes Authors. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +apiVersion: apiextensions.k8s.io/v1 |
| 15 | +kind: CustomResourceDefinition |
| 16 | +metadata: |
| 17 | + name: serviceexports.multicluster.x-k8s.io |
| 18 | +spec: |
| 19 | + group: multicluster.x-k8s.io |
| 20 | + scope: Namespaced |
| 21 | + names: |
| 22 | + plural: serviceexports |
| 23 | + singular: serviceexport |
| 24 | + kind: ServiceExport |
| 25 | + shortNames: |
| 26 | + - svcex |
| 27 | + versions: |
| 28 | + - name: v1alpha1 |
| 29 | + served: true |
| 30 | + storage: true |
| 31 | + subresources: |
| 32 | + status: {} |
| 33 | + additionalPrinterColumns: |
| 34 | + - name: Age |
| 35 | + type: date |
| 36 | + jsonPath: .metadata.creationTimestamp |
| 37 | + "schema": |
| 38 | + "openAPIV3Schema": |
| 39 | + description: ServiceExport declares that the Service with the same name and |
| 40 | + namespace as this export should be consumable from other clusters. |
| 41 | + type: object |
| 42 | + properties: |
| 43 | + apiVersion: |
| 44 | + description: 'APIVersion defines the versioned schema of this representation |
| 45 | + of an object. Servers should convert recognized schemas to the latest |
| 46 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 47 | + type: string |
| 48 | + kind: |
| 49 | + description: 'Kind is a string value representing the REST resource this |
| 50 | + object represents. Servers may infer this from the endpoint the client |
| 51 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 52 | + type: string |
| 53 | + metadata: |
| 54 | + type: object |
| 55 | + status: |
| 56 | + description: status describes the current state of an exported service. |
| 57 | + Service configuration comes from the Service that had the same name |
| 58 | + and namespace as this ServiceExport. Populated by the multi-cluster |
| 59 | + service implementation's controller. |
| 60 | + type: object |
| 61 | + properties: |
| 62 | + conditions: |
| 63 | + type: array |
| 64 | + items: |
| 65 | + description: "Condition contains details for one aspect of the current |
| 66 | + state of this API Resource. --- This struct is intended for direct |
| 67 | + use as an array at the field path .status.conditions. For example, |
| 68 | + type FooStatus struct{ // Represents the observations of a |
| 69 | + foo's current state. // Known .status.conditions.type are: |
| 70 | + \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type |
| 71 | + \ // +patchStrategy=merge // +listType=map // +listMapKey=type |
| 72 | + \ Conditions []metav1.Condition `json:\"conditions,omitempty\" |
| 73 | + patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` |
| 74 | + \n // other fields }" |
| 75 | + type: object |
| 76 | + required: |
| 77 | + - lastTransitionTime |
| 78 | + - message |
| 79 | + - reason |
| 80 | + - status |
| 81 | + - type |
| 82 | + properties: |
| 83 | + lastTransitionTime: |
| 84 | + description: lastTransitionTime is the last time the condition |
| 85 | + transitioned from one status to another. This should be when |
| 86 | + the underlying condition changed. If that is not known, then |
| 87 | + using the time when the API field changed is acceptable. |
| 88 | + type: string |
| 89 | + format: date-time |
| 90 | + message: |
| 91 | + description: message is a human readable message indicating |
| 92 | + details about the transition. This may be an empty string. |
| 93 | + type: string |
| 94 | + maxLength: 32768 |
| 95 | + observedGeneration: |
| 96 | + description: observedGeneration represents the .metadata.generation |
| 97 | + that the condition was set based upon. For instance, if .metadata.generation |
| 98 | + is currently 12, but the .status.conditions[x].observedGeneration |
| 99 | + is 9, the condition is out of date with respect to the current |
| 100 | + state of the instance. |
| 101 | + type: integer |
| 102 | + format: int64 |
| 103 | + minimum: 0 |
| 104 | + reason: |
| 105 | + description: reason contains a programmatic identifier indicating |
| 106 | + the reason for the condition's last transition. Producers |
| 107 | + of specific condition types may define expected values and |
| 108 | + meanings for this field, and whether the values are considered |
| 109 | + a guaranteed API. The value should be a CamelCase string. |
| 110 | + This field may not be empty. |
| 111 | + type: string |
| 112 | + maxLength: 1024 |
| 113 | + minLength: 1 |
| 114 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 115 | + status: |
| 116 | + description: status of the condition, one of True, False, Unknown. |
| 117 | + type: string |
| 118 | + enum: |
| 119 | + - "True" |
| 120 | + - "False" |
| 121 | + - Unknown |
| 122 | + type: |
| 123 | + description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 124 | + --- Many .condition.type values are consistent across resources |
| 125 | + like Available, but because arbitrary conditions can be useful |
| 126 | + (see .node.status.conditions), the ability to deconflict is |
| 127 | + important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| 128 | + type: string |
| 129 | + maxLength: 316 |
| 130 | + 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])$ |
| 131 | + x-kubernetes-list-map-keys: |
| 132 | + - type |
| 133 | + x-kubernetes-list-type: map |
0 commit comments