This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crds: add UpstreamTrafficSetting CRD (#4547)
Adds the CRD for UpstreamTrafficSetting API. Part of #4500 Signed-off-by: Shashank Ram <[email protected]>
- Loading branch information
1 parent
9b268d0
commit cf5223c
Showing
1 changed file
with
94 additions
and
0 deletions.
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
cmd/osm-bootstrap/crds/policy_upstream_traffic_setting.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Custom Resource Definition (CRD) for OSM's UpstreamTrafficSetting API. | ||
# | ||
# Copyright Open Service Mesh authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: upstreamtrafficsettings.policy.openservicemesh.io | ||
labels: | ||
app.kubernetes.io/name : "openservicemesh.io" | ||
spec: | ||
group: policy.openservicemesh.io | ||
scope: Namespaced | ||
names: | ||
kind: UpstreamTrafficSetting | ||
listKind: UpstreamTrafficSettingList | ||
shortNames: | ||
- upstreamtrafficsetting | ||
singular: upstreamtrafficsetting | ||
plural: upstreamtrafficsettings | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
additionalPrinterColumns: | ||
- description: Current status of the UpstreamTrafficSetting policy. | ||
jsonPath: .status.currentStatus | ||
name: Status | ||
type: string | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
properties: | ||
spec: | ||
type: object | ||
required: | ||
- host | ||
properties: | ||
host: | ||
description: Upstream host the policy is applicabe to. | ||
type: string | ||
connectionSettings: | ||
description: Connection settings for the upstream host. | ||
type: object | ||
properties: | ||
tcp: | ||
description: TCP connection settings. | ||
type: object | ||
properties: | ||
maxConnections: | ||
description: Maximum number of TCP connections. | ||
type: integer | ||
minimum: 0 | ||
connectTimeout: | ||
description: TCP connection timeout. | ||
type: string | ||
http: | ||
description: HTTP connection settings. | ||
type: object | ||
properties: | ||
maxRequests: | ||
description: Maximum number of parallel HTTP requests allowed. | ||
type: integer | ||
minimum: 0 | ||
maxRequestsPerConnection: | ||
description: Maximum number of HTTP requests per connection allowed. | ||
type: integer | ||
minimum: 0 | ||
maxPendingRequests: | ||
description: Maximum number of pending HTTP/1.1 requests allowed. | ||
type: integer | ||
minimum: 0 | ||
maxRetries: | ||
description: Maximum number of parallel retries allowed. | ||
type: integer | ||
minimum: 0 | ||
status: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
subresources: | ||
# status enables the status subresource | ||
status: {} |