-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Cybwan <[email protected]>
- Loading branch information
Showing
42 changed files
with
1,079 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
97 changes: 97 additions & 0 deletions
97
cmd/fsm-bootstrap/crds/policy.flomesh.io_trafficwarmups.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,97 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.16.5 | ||
labels: | ||
app.kubernetes.io/name: flomesh.io | ||
name: trafficwarmups.policy.flomesh.io | ||
spec: | ||
group: policy.flomesh.io | ||
names: | ||
kind: TrafficWarmup | ||
listKind: TrafficWarmupList | ||
plural: trafficwarmups | ||
shortNames: | ||
- trafficwarmup | ||
singular: trafficwarmup | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: TrafficWarmup is the type used to represent a traffic warmup | ||
policy. | ||
properties: | ||
apiVersion: | ||
description: |- | ||
APIVersion defines the versioned schema of this representation of an object. | ||
Servers should convert recognized schemas to the latest internal value, and | ||
may reject unrecognized values. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
type: string | ||
kind: | ||
description: |- | ||
Kind is a string value representing the REST resource this object represents. | ||
Servers may infer this from the endpoint the client submits requests to. | ||
Cannot be updated. | ||
In CamelCase. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: |- | ||
Specification of the desired behavior of the traffic raffic warmup. | ||
More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | ||
properties: | ||
aggression: | ||
default: 1 | ||
description: |- | ||
Aggression controls the speed of traffic increase over the warmup duration. Defaults to 1.0, so that endpoints would | ||
get linearly increasing amount of traffic. When increasing the value for this parameter, | ||
the speed of traffic ramp-up increases non-linearly. | ||
minimum: 1 | ||
type: number | ||
duration: | ||
default: 90s | ||
format: duration | ||
type: string | ||
enable: | ||
default: true | ||
type: boolean | ||
maxWeight: | ||
default: 100 | ||
description: |- | ||
MaxWeight configures the maximum percentage of origin weight | ||
If unspecified, defaults to 100 | ||
format: int64 | ||
maximum: 100 | ||
minimum: 0 | ||
type: integer | ||
minWeight: | ||
default: 10 | ||
description: |- | ||
MinWeight configures the minimum percentage of origin weight | ||
If unspecified, defaults to 10 | ||
format: int64 | ||
maximum: 100 | ||
minimum: 0 | ||
type: integer | ||
type: object | ||
status: | ||
description: Status defines the current state of TrafficWarmup. | ||
properties: | ||
currentStatus: | ||
description: CurrentStatus defines the current status of a traffic | ||
warmup resource. | ||
type: string | ||
reason: | ||
description: Reason defines the reason for the current status of a | ||
raffic warmup resource. | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true |
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
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
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
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
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
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
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
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
Oops, something went wrong.