Skip to content

Commit

Permalink
feat: update canaries.flagger.app crd (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzubtsou authored Dec 17, 2024
1 parent bf66d9a commit 6e6efbf
Showing 1 changed file with 144 additions and 1 deletion.
145 changes: 144 additions & 1 deletion flagger.app/canary_v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,64 @@
},
"type": "object"
},
"queryParams": {
"additionalProperties": {
"oneOf": [
{
"not": {
"anyOf": [
{
"required": [
"exact"
]
},
{
"required": [
"prefix"
]
},
{
"required": [
"regex"
]
}
]
}
},
{
"required": [
"exact"
]
},
{
"required": [
"prefix"
]
},
{
"required": [
"regex"
]
}
],
"properties": {
"exact": {
"type": "string"
},
"prefix": {
"type": "string"
},
"regex": {
"description": "RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"description": "Query parameters for matching.",
"type": "object"
},
"sourceLabels": {
"additionalProperties": {
"format": "string",
Expand Down Expand Up @@ -309,6 +367,10 @@
"description": "Name of the webhook",
"type": "string"
},
"retries": {
"description": "Number of retries for this webhook",
"type": "number"
},
"timeout": {
"description": "Request timeout for this webhook",
"pattern": "^[0-9]+(m|s)",
Expand Down Expand Up @@ -621,6 +683,12 @@
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
"type": "string"
},
"port": {
"format": "int32",
"maximum": 65535,
"minimum": 1,
"type": "integer"
},
"sectionName": {
"maxLength": 253,
"minLength": 1,
Expand Down Expand Up @@ -1169,6 +1237,64 @@
"description": "AppMesh mesh name",
"type": "string"
},
"mirror": {
"description": "Mirror defines a schema for a filter that mirrors requests.",
"items": {
"properties": {
"backendRef": {
"properties": {
"group": {
"default": "",
"maxLength": 253,
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
"type": "string"
},
"kind": {
"default": "Service",
"maxLength": 63,
"minLength": 1,
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
"type": "string"
},
"name": {
"maxLength": 253,
"minLength": 1,
"type": "string"
},
"namespace": {
"maxLength": 63,
"minLength": 1,
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
"type": "string"
},
"port": {
"format": "int32",
"maximum": 65535,
"minimum": 1,
"type": "integer"
}
},
"required": [
"name"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "Must have port for Service reference",
"rule": "(size(self.group) == 0 && self.kind == 'Service') ? has(self.port) : true"
}
],
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"required": [
"backendRef"
],
"type": "array"
},
"name": {
"description": "Kubernetes service name",
"type": "string"
Expand Down Expand Up @@ -1228,6 +1354,14 @@
"rewrite": {
"description": "Rewrite HTTP URIs",
"properties": {
"authority": {
"format": "string",
"type": "string"
},
"type": {
"format": "string",
"type": "string"
},
"uri": {
"format": "string",
"type": "string"
Expand Down Expand Up @@ -1433,9 +1567,14 @@
"ROUND_ROBIN",
"LEAST_CONN",
"RANDOM",
"PASSTHROUGH"
"PASSTHROUGH",
"LEAST_REQUEST"
],
"type": "string"
},
"warmupDurationSecs": {
"description": "Represents the warmup duration of Service.",
"type": "string"
}
},
"type": "object",
Expand Down Expand Up @@ -1534,6 +1673,10 @@
"description": "Skip analysis and promote canary",
"type": "boolean"
},
"suspend": {
"description": "Suspend Canary disabling/pausing all canary runs",
"type": "boolean"
},
"targetRef": {
"description": "Target selector",
"properties": {
Expand Down

0 comments on commit 6e6efbf

Please sign in to comment.