Skip to content

Commit

Permalink
add linkerd crd (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyriosGN0 authored Nov 24, 2024
1 parent 182d09a commit a1f47b3
Show file tree
Hide file tree
Showing 14 changed files with 6,103 additions and 0 deletions.
189 changes: 189 additions & 0 deletions linkerd.io/serviceprofile_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
{
"properties": {
"spec": {
"description": "Spec is the custom resource spec",
"properties": {
"dstOverrides": {
"items": {
"description": "WeightedDst is a weighted alternate destination.",
"properties": {
"authority": {
"type": "string"
},
"weight": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
}
},
"type": "object",
"additionalProperties": false
},
"required": [
"authority",
"weight"
],
"type": "array"
},
"opaquePorts": {
"items": {
"type": "string"
},
"type": "array"
},
"retryBudget": {
"description": "RetryBudget describes the maximum number of retries that should be issued to this service.",
"properties": {
"minRetriesPerSecond": {
"format": "int32",
"type": "integer"
},
"retryRatio": {
"format": "float",
"type": "number"
},
"ttl": {
"type": "string"
}
},
"required": [
"minRetriesPerSecond",
"retryRatio",
"ttl"
],
"type": "object",
"additionalProperties": false
},
"routes": {
"items": {
"description": "RouteSpec specifies a Route resource.",
"properties": {
"condition": {
"description": "RequestMatch describes the conditions under which to match a Route.",
"properties": {
"all": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"any": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"method": {
"type": "string"
},
"not": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"pathRegex": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"isRetryable": {
"type": "boolean"
},
"name": {
"type": "string"
},
"responseClasses": {
"items": {
"description": "ResponseClass describes how to classify a response (e.g. success or failures).",
"properties": {
"condition": {
"description": "ResponseMatch describes the conditions under which to classify a response.",
"properties": {
"all": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"any": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"not": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"status": {
"description": "Range describes a range of integers (e.g. status codes).",
"properties": {
"max": {
"format": "int32",
"type": "integer"
},
"min": {
"format": "int32",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"isFailure": {
"type": "boolean"
}
},
"required": [
"condition"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"timeout": {
"type": "string"
}
},
"required": [
"condition",
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"required": [
"routes"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
186 changes: 186 additions & 0 deletions linkerd.io/serviceprofile_v1alpha2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
{
"properties": {
"spec": {
"description": "Spec is the custom resource spec",
"properties": {
"dstOverrides": {
"items": {
"description": "WeightedDst is a weighted alternate destination.",
"properties": {
"authority": {
"type": "string"
},
"weight": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
}
},
"type": "object",
"additionalProperties": false
},
"required": [
"authority",
"weight"
],
"type": "array"
},
"opaquePorts": {
"items": {
"type": "string"
},
"type": "array"
},
"retryBudget": {
"description": "RetryBudget describes the maximum number of retries that should be issued to this service.",
"properties": {
"minRetriesPerSecond": {
"format": "int32",
"type": "integer"
},
"retryRatio": {
"format": "float",
"type": "number"
},
"ttl": {
"type": "string"
}
},
"required": [
"minRetriesPerSecond",
"retryRatio",
"ttl"
],
"type": "object",
"additionalProperties": false
},
"routes": {
"items": {
"description": "RouteSpec specifies a Route resource.",
"properties": {
"condition": {
"description": "RequestMatch describes the conditions under which to match a Route.",
"properties": {
"all": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"any": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"method": {
"type": "string"
},
"not": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"pathRegex": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"isRetryable": {
"type": "boolean"
},
"name": {
"type": "string"
},
"responseClasses": {
"items": {
"description": "ResponseClass describes how to classify a response (e.g. success or failures).",
"properties": {
"condition": {
"description": "ResponseMatch describes the conditions under which to classify a response.",
"properties": {
"all": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"any": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"not": {
"items": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"status": {
"description": "Range describes a range of integers (e.g. status codes).",
"properties": {
"max": {
"format": "int32",
"type": "integer"
},
"min": {
"format": "int32",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"isFailure": {
"type": "boolean"
}
},
"required": [
"condition"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"timeout": {
"type": "string"
}
},
"required": [
"condition",
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Loading

0 comments on commit a1f47b3

Please sign in to comment.