|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.19.0 |
| 7 | + name: multikeylisteners.skupper.io |
| 8 | +spec: |
| 9 | + group: skupper.io |
| 10 | + names: |
| 11 | + kind: MultiKeyListener |
| 12 | + listKind: MultiKeyListenerList |
| 13 | + plural: multikeylisteners |
| 14 | + singular: multikeylistener |
| 15 | + scope: Namespaced |
| 16 | + versions: |
| 17 | + - additionalPrinterColumns: |
| 18 | + - description: The status of the multikeylistener |
| 19 | + jsonPath: .status.status |
| 20 | + name: Status |
| 21 | + type: string |
| 22 | + - description: Any human reandable message relevant to the multikeylistener |
| 23 | + jsonPath: .status.message |
| 24 | + name: Message |
| 25 | + type: string |
| 26 | + - description: Whether there is at least one connector in the network matched |
| 27 | + by the strategy |
| 28 | + jsonPath: .status.hasDestination |
| 29 | + name: HasDestination |
| 30 | + type: boolean |
| 31 | + name: v2alpha1 |
| 32 | + schema: |
| 33 | + openAPIV3Schema: |
| 34 | + description: |- |
| 35 | + MultiKeyListeners bind a local connection endpoint to Connectors across the |
| 36 | + Skupper network. A MultiKeyListener has a strategy that matches it to |
| 37 | + Connector routing keys. |
| 38 | + properties: |
| 39 | + apiVersion: |
| 40 | + description: |- |
| 41 | + APIVersion defines the versioned schema of this representation of an object. |
| 42 | + Servers should convert recognized schemas to the latest internal value, and |
| 43 | + may reject unrecognized values. |
| 44 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 45 | + type: string |
| 46 | + kind: |
| 47 | + description: |- |
| 48 | + Kind is a string value representing the REST resource this object represents. |
| 49 | + Servers may infer this from the endpoint the client submits requests to. |
| 50 | + Cannot be updated. |
| 51 | + In CamelCase. |
| 52 | + 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 | + spec: |
| 57 | + properties: |
| 58 | + host: |
| 59 | + description: |- |
| 60 | + host is the hostname or IP address of the local listener. Clients at |
| 61 | + this site use the listener host and port to establish connections to the |
| 62 | + remote service. |
| 63 | + type: string |
| 64 | + port: |
| 65 | + description: |- |
| 66 | + port of the local listener. Clients at this site use the listener host |
| 67 | + and port to establish connections to the remote service. |
| 68 | + type: integer |
| 69 | + requireClientCert: |
| 70 | + description: |- |
| 71 | + requireClientCert indicates that clients must present valid certificates |
| 72 | + to the listener to connect. |
| 73 | + type: boolean |
| 74 | + settings: |
| 75 | + additionalProperties: |
| 76 | + type: string |
| 77 | + description: |- |
| 78 | + settings is a map containing additional settings. |
| 79 | +
|
| 80 | + **Note:** In general, we recommend not changing settings from |
| 81 | + their default values. |
| 82 | + type: object |
| 83 | + strategy: |
| 84 | + description: |- |
| 85 | + strategy for routing traffic from the local listener endpoint to one or |
| 86 | + more connector instances by routing key. |
| 87 | + properties: |
| 88 | + priority: |
| 89 | + description: |- |
| 90 | + PriorityStrategySpec specifies an ordered set of routing keys to |
| 91 | + route traffic to. |
| 92 | +
|
| 93 | + With this strategy 100% of traffic will be directed to the first routing key |
| 94 | + with a reachable connector. |
| 95 | + properties: |
| 96 | + routingKeys: |
| 97 | + description: routingKeys to route traffic to in order of highest |
| 98 | + to lowest priority. |
| 99 | + items: |
| 100 | + type: string |
| 101 | + maxItems: 256 |
| 102 | + minItems: 1 |
| 103 | + type: array |
| 104 | + x-kubernetes-list-type: set |
| 105 | + required: |
| 106 | + - routingKeys |
| 107 | + type: object |
| 108 | + type: object |
| 109 | + x-kubernetes-validations: |
| 110 | + - message: exactly one of the fields in [priority] must be |
| 111 | + set |
| 112 | + rule: '[has(self.priority)].filter(x,x==true).size() == |
| 113 | + 1' |
| 114 | + tlsCredentials: |
| 115 | + description: tlsCredentials for client-to-listener |
| 116 | + type: string |
| 117 | + required: |
| 118 | + - host |
| 119 | + - port |
| 120 | + - strategy |
| 121 | + type: object |
| 122 | + status: |
| 123 | + properties: |
| 124 | + conditions: |
| 125 | + description: |- |
| 126 | + conditions describing the current state of the multikeylistener |
| 127 | +
|
| 128 | + - `Configured`: The multikeylistener configuration has been applied to the router. |
| 129 | + - `Operational`: There is at least one connector corresponding to the multikeylistener strategy. |
| 130 | + - `Ready`: The multikeylistener is ready to use. All other conditions are true.. |
| 131 | + items: |
| 132 | + description: Condition contains details for one aspect of the current |
| 133 | + state of this API Resource. |
| 134 | + properties: |
| 135 | + lastTransitionTime: |
| 136 | + description: |- |
| 137 | + lastTransitionTime is the last time the condition transitioned from one status to another. |
| 138 | + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
| 139 | + format: date-time |
| 140 | + type: string |
| 141 | + message: |
| 142 | + description: |- |
| 143 | + message is a human readable message indicating details about the transition. |
| 144 | + This may be an empty string. |
| 145 | + maxLength: 32768 |
| 146 | + type: string |
| 147 | + observedGeneration: |
| 148 | + description: |- |
| 149 | + observedGeneration represents the .metadata.generation that the condition was set based upon. |
| 150 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 151 | + with respect to the current state of the instance. |
| 152 | + format: int64 |
| 153 | + minimum: 0 |
| 154 | + type: integer |
| 155 | + reason: |
| 156 | + description: |- |
| 157 | + reason contains a programmatic identifier indicating the reason for the condition's last transition. |
| 158 | + Producers of specific condition types may define expected values and meanings for this field, |
| 159 | + and whether the values are considered a guaranteed API. |
| 160 | + The value should be a CamelCase string. |
| 161 | + This field may not be empty. |
| 162 | + maxLength: 1024 |
| 163 | + minLength: 1 |
| 164 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 165 | + type: string |
| 166 | + status: |
| 167 | + description: status of the condition, one of True, False, Unknown. |
| 168 | + enum: |
| 169 | + - "True" |
| 170 | + - "False" |
| 171 | + - Unknown |
| 172 | + type: string |
| 173 | + type: |
| 174 | + description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 175 | + maxLength: 316 |
| 176 | + 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])$ |
| 177 | + type: string |
| 178 | + required: |
| 179 | + - lastTransitionTime |
| 180 | + - message |
| 181 | + - reason |
| 182 | + - status |
| 183 | + - type |
| 184 | + type: object |
| 185 | + type: array |
| 186 | + hasDestination: |
| 187 | + description: |- |
| 188 | + hasDestination is set true when there is at least one connector in the |
| 189 | + network with a routing key matched by the strategy. |
| 190 | + type: boolean |
| 191 | + message: |
| 192 | + description: A human-readable status message. Error messages are reported |
| 193 | + here. |
| 194 | + type: string |
| 195 | + status: |
| 196 | + description: |- |
| 197 | + The current state of the resource. |
| 198 | + - `Pending`: The resource is being processed. |
| 199 | + - `Error`: There was an error processing the resource. See `message` for more information. |
| 200 | + - `Ready`: The resource is ready to use. |
| 201 | + type: string |
| 202 | + strategy: |
| 203 | + properties: |
| 204 | + priority: |
| 205 | + description: priority status |
| 206 | + properties: |
| 207 | + routingKeysReachable: |
| 208 | + description: |- |
| 209 | + routingKeysReachable is a list of routingKeys with at least one |
| 210 | + reachable connector given in priority order. |
| 211 | + items: |
| 212 | + type: string |
| 213 | + type: array |
| 214 | + required: |
| 215 | + - routingKeysReachable |
| 216 | + type: object |
| 217 | + type: object |
| 218 | + x-kubernetes-validations: |
| 219 | + - message: exactly one of the fields in [priority] must be |
| 220 | + set |
| 221 | + rule: '[has(self.priority)].filter(x,x==true).size() == |
| 222 | + 1' |
| 223 | + type: object |
| 224 | + required: |
| 225 | + - spec |
| 226 | + type: object |
| 227 | + served: true |
| 228 | + storage: true |
| 229 | + subresources: |
| 230 | + status: {} |
0 commit comments