update crds
This commit is contained in:
@@ -0,0 +1,302 @@
|
||||
{
|
||||
"description": "HTTPScaledObject is the Schema for the httpscaledobjects API",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object"
|
||||
},
|
||||
"spec": {
|
||||
"description": "HTTPScaledObjectSpec defines the desired state of HTTPScaledObject",
|
||||
"properties": {
|
||||
"coldStartTimeoutFailoverRef": {
|
||||
"description": "(optional) The name of the failover service to route HTTP requests to when the target is not available",
|
||||
"properties": {
|
||||
"port": {
|
||||
"description": "The port to route to",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"portName": {
|
||||
"description": "The port to route to referenced by name",
|
||||
"type": "string"
|
||||
},
|
||||
"service": {
|
||||
"description": "The name of the service to route to",
|
||||
"type": "string"
|
||||
},
|
||||
"timeoutSeconds": {
|
||||
"default": 30,
|
||||
"description": "The timeout in seconds to wait before routing to the failover service (Default 30)",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"service"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "must define either the 'portName' or the 'port'",
|
||||
"rule": "has(self.portName) != has(self.port)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"headers": {
|
||||
"description": "The custom headers used to route. Once Hosts and PathPrefixes have been matched,\nit will look for requests which have headers that match all the headers defined\nin .spec.headers, it will be routed to the Service and Port specified in\nthe scaleTargetRef. Interceptor will take precedence for most specific header match.\nIf the headers can't be matched, then use first one without .spec.headers supplied\nIf that doesn't exist then routing will fail.",
|
||||
"items": {
|
||||
"description": "Header contains the definition for matching on header name and/or value",
|
||||
"properties": {
|
||||
"name": {
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-map-keys": [
|
||||
"name"
|
||||
],
|
||||
"x-kubernetes-list-type": "map"
|
||||
},
|
||||
"hosts": {
|
||||
"description": "The hosts to route. All requests which the \"Host\" header\nmatches any .spec.hosts (and the Request Target matches any\n.spec.pathPrefixes) will be routed to the Service and Port specified in\nthe scaleTargetRef.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"initialCooldownPeriod": {
|
||||
"description": "(optional) Initial period before scaling",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"pathPrefixes": {
|
||||
"description": "The paths to route. All requests which the Request Target matches any\n.spec.pathPrefixes (and the \"Host\" header matches any .spec.hosts)\nwill be routed to the Service and Port specified in\nthe scaleTargetRef.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"replicas": {
|
||||
"description": "(optional) Replica information",
|
||||
"properties": {
|
||||
"max": {
|
||||
"description": "Maximum amount of replicas to have in the deployment (Default 100)",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"min": {
|
||||
"description": "Minimum amount of replicas to have in the deployment (Default 0)",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"scaleTargetRef": {
|
||||
"description": "The name of the deployment to route HTTP requests to (and to autoscale).\nIncluding validation as a requirement to define either the PortName or the Port",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"description": "The port to route to",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"portName": {
|
||||
"description": "The port to route to referenced by name",
|
||||
"type": "string"
|
||||
},
|
||||
"service": {
|
||||
"description": "The name of the service to route to",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"service"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "must define either the 'portName' or the 'port'",
|
||||
"rule": "has(self.portName) != has(self.port)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"scaledownPeriod": {
|
||||
"description": "(optional) Cooldown period value",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"scalingMetric": {
|
||||
"description": "(optional) Configuration for the metric used for scaling",
|
||||
"properties": {
|
||||
"concurrency": {
|
||||
"description": "Scaling based on concurrent requests for a given target",
|
||||
"properties": {
|
||||
"targetValue": {
|
||||
"default": 100,
|
||||
"description": "Target value for rate scaling",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"requestRate": {
|
||||
"description": "Scaling based the average rate during an specific time window for a given target",
|
||||
"properties": {
|
||||
"granularity": {
|
||||
"default": "1s",
|
||||
"description": "Time granularity for rate calculation",
|
||||
"type": "string"
|
||||
},
|
||||
"targetValue": {
|
||||
"default": 100,
|
||||
"description": "Target value for rate scaling",
|
||||
"type": "integer"
|
||||
},
|
||||
"window": {
|
||||
"default": "1m",
|
||||
"description": "Time window for rate calculation",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"targetPendingRequests": {
|
||||
"description": "(optional) DEPRECATED (use ScalingMetric instead) Target metric value",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"timeouts": {
|
||||
"description": "(optional) Timeouts that override the global ones",
|
||||
"properties": {
|
||||
"conditionWait": {
|
||||
"description": "How long to wait for the backing workload to have 1 or more replicas before connecting and sending the HTTP request (Default is set by the KEDA_CONDITION_WAIT_TIMEOUT environment variable)",
|
||||
"type": "string"
|
||||
},
|
||||
"responseHeader": {
|
||||
"description": "How long to wait between when the HTTP request is sent to the backing app and when response headers need to arrive (Default is set by the KEDA_RESPONSE_HEADER_TIMEOUT environment variable)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scaleTargetRef"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"status": {
|
||||
"description": "HTTPScaledObjectStatus defines the observed state of HTTPScaledObject",
|
||||
"properties": {
|
||||
"conditions": {
|
||||
"description": "Conditions of the HTTPScaledObject.",
|
||||
"items": {
|
||||
"description": "Condition contains details for one aspect of the current state of this API Resource.",
|
||||
"properties": {
|
||||
"lastTransitionTime": {
|
||||
"description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
|
||||
"maxLength": 32768,
|
||||
"type": "string"
|
||||
},
|
||||
"observedGeneration": {
|
||||
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
|
||||
"format": "int64",
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"reason": {
|
||||
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
|
||||
"maxLength": 1024,
|
||||
"minLength": 1,
|
||||
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "status of the condition, one of True, False, Unknown.",
|
||||
"enum": [
|
||||
"True",
|
||||
"False",
|
||||
"Unknown"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
|
||||
"maxLength": 316,
|
||||
"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])$",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"lastTransitionTime",
|
||||
"message",
|
||||
"reason",
|
||||
"status",
|
||||
"type"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-map-keys": [
|
||||
"type"
|
||||
],
|
||||
"x-kubernetes-list-type": "map"
|
||||
},
|
||||
"targetService": {
|
||||
"description": "TargetService reflects details about the scaled service.",
|
||||
"type": "string"
|
||||
},
|
||||
"targetWorkload": {
|
||||
"description": "TargetWorkload reflects details about the scaled workload.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
@@ -0,0 +1,391 @@
|
||||
{
|
||||
"description": "InterceptorRoute configures request routing and autoscaling for a target service.",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object"
|
||||
},
|
||||
"spec": {
|
||||
"description": "InterceptorRouteSpec defines the desired state of InterceptorRoute.",
|
||||
"properties": {
|
||||
"coldStart": {
|
||||
"description": "Cold start behavior when scaling from zero.",
|
||||
"properties": {
|
||||
"fallback": {
|
||||
"description": "Fallback target to route to when the primary backend does not become\nready within the readiness timeout.",
|
||||
"properties": {
|
||||
"service": {
|
||||
"description": "Kubernetes Service to use as the fallback target.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Name of the Kubernetes Service.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"description": "Port number on the Service. Mutually exclusive with portName.",
|
||||
"format": "int32",
|
||||
"maximum": 65535,
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"portName": {
|
||||
"description": "Named port on the Service. Mutually exclusive with port.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "exactly one of 'port' or 'portName' must be set",
|
||||
"rule": "has(self.port) != has(self.portName)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"service"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"placeholder": {
|
||||
"description": "Placeholder response to serve while the target has no ready endpoints.",
|
||||
"properties": {
|
||||
"response": {
|
||||
"description": "Static response to return immediately when the backend has no ready endpoints.",
|
||||
"properties": {
|
||||
"body": {
|
||||
"description": "Inline response body.",
|
||||
"maxLength": 32768,
|
||||
"type": "string"
|
||||
},
|
||||
"bodyFromConfigMap": {
|
||||
"description": "Response body from a ConfigMap in the same namespace. The ConfigMap must\ncarry the label \"http.keda.sh/response-body: true\". A missing ConfigMap\nor a missing explicit key returns HTTP 500.",
|
||||
"properties": {
|
||||
"key": {
|
||||
"description": "Key within the ConfigMap. When omitted, the key is the request path\nwithout the leading \"/\" (defaulting to \"index.html\" for \"/\").\nThe Content-Type header is auto-detected from the key's file extension\nunless explicitly set in headers.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Name of the ConfigMap.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"headers": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "HTTP response headers.",
|
||||
"type": "object"
|
||||
},
|
||||
"statusCode": {
|
||||
"default": 503,
|
||||
"description": "HTTP status code.",
|
||||
"format": "int32",
|
||||
"maximum": 599,
|
||||
"minimum": 100,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "at most one of 'body' or 'bodyFromConfigMap' may be set",
|
||||
"rule": "!(has(self.body) && has(self.bodyFromConfigMap))"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"response"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "at least one of 'fallback' or 'placeholder' must be set",
|
||||
"rule": "has(self.fallback) || has(self.placeholder)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"rules": {
|
||||
"description": "Routing rules that define how requests are matched to this target.",
|
||||
"items": {
|
||||
"description": "RoutingRule defines a set of matching criteria for routing requests.",
|
||||
"properties": {
|
||||
"headers": {
|
||||
"description": "All listed headers must match the request (AND semantics).\nIf a header's Value is omitted, the header must be present but any\nvalue is accepted.",
|
||||
"items": {
|
||||
"description": "HeaderMatch defines a header matching rule.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Name of the HTTP header.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value to match against (exact match). If omitted, matches any value for given header name.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-map-keys": [
|
||||
"name"
|
||||
],
|
||||
"x-kubernetes-list-type": "map"
|
||||
},
|
||||
"hosts": {
|
||||
"description": "Match any of these hostnames. Wildcard patterns (e.g. \"*.example.com\")\nare supported. A single \"*\" acts as a catch-all. Exact matches take\npriority over wildcards; more specific wildcards (e.g. \"*.bar.example.com\")\ntake priority over less specific ones.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "set"
|
||||
},
|
||||
"paths": {
|
||||
"description": "Match any of these path prefixes. When multiple paths match,\nthe longest prefix wins.",
|
||||
"items": {
|
||||
"description": "PathMatch defines a path matching rule.",
|
||||
"properties": {
|
||||
"value": {
|
||||
"description": "Path prefix to match against. The longest matching prefix wins.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"value"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"scalingMetric": {
|
||||
"description": "Metric configuration for autoscaling.",
|
||||
"properties": {
|
||||
"concurrency": {
|
||||
"description": "Scale based on concurrent request count.",
|
||||
"properties": {
|
||||
"targetValue": {
|
||||
"description": "Target concurrent request count per replica.",
|
||||
"format": "int32",
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"targetValue"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"requestRate": {
|
||||
"description": "Scale based on request rate.",
|
||||
"properties": {
|
||||
"granularity": {
|
||||
"default": "1s",
|
||||
"description": "Bucket size for rate calculation within the window.",
|
||||
"type": "string"
|
||||
},
|
||||
"targetValue": {
|
||||
"description": "Target request rate per replica.",
|
||||
"format": "int32",
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"window": {
|
||||
"default": "1m",
|
||||
"description": "Sliding time window over which the request rate is calculated.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"targetValue"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "at least one of 'concurrency' or 'requestRate' must be set",
|
||||
"rule": "has(self.concurrency) || has(self.requestRate)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"target": {
|
||||
"description": "Backend service to route traffic to.",
|
||||
"properties": {
|
||||
"port": {
|
||||
"description": "Port number on the Service. Mutually exclusive with portName.",
|
||||
"format": "int32",
|
||||
"maximum": 65535,
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
},
|
||||
"portName": {
|
||||
"description": "Named port on the Service. Mutually exclusive with port.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
},
|
||||
"service": {
|
||||
"description": "Name of the Kubernetes Service.",
|
||||
"minLength": 1,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"service"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "exactly one of 'port' or 'portName' must be set",
|
||||
"rule": "has(self.port) != has(self.portName)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"timeouts": {
|
||||
"description": "Timeout configuration for request handling.",
|
||||
"properties": {
|
||||
"readiness": {
|
||||
"description": "Time to wait for the backend to become ready (e.g. scale-from-zero).\nUnset: uses the global KEDA_HTTP_READINESS_TIMEOUT (default: disabled).\nSet to \"0s\" to disable the dedicated readiness deadline so the full\nrequest budget is available for cold starts. When a fallback service\nis configured and this is \"0s\", a 30s default is applied.",
|
||||
"type": "string"
|
||||
},
|
||||
"request": {
|
||||
"description": "Total time allowed for the entire request lifecycle.\nUnset: uses the global KEDA_HTTP_REQUEST_TIMEOUT (default: disabled).\nSet to \"0s\" to disable the request deadline.",
|
||||
"type": "string"
|
||||
},
|
||||
"responseHeader": {
|
||||
"description": "Max time to wait for the response headers from the backend after the\nrequest has been fully sent. Does not include cold-start wait time.\nUnset: uses the global KEDA_HTTP_RESPONSE_HEADER_TIMEOUT (default: 300s).\nSet to \"0s\" to disable the response header deadline.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scalingMetric",
|
||||
"target"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"status": {
|
||||
"description": "InterceptorRouteStatus defines the observed state of InterceptorRoute.",
|
||||
"properties": {
|
||||
"conditions": {
|
||||
"description": "Conditions of the InterceptorRoute.",
|
||||
"items": {
|
||||
"description": "Condition contains details for one aspect of the current state of this API Resource.",
|
||||
"properties": {
|
||||
"lastTransitionTime": {
|
||||
"description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
|
||||
"maxLength": 32768,
|
||||
"type": "string"
|
||||
},
|
||||
"observedGeneration": {
|
||||
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
|
||||
"format": "int64",
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"reason": {
|
||||
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
|
||||
"maxLength": 1024,
|
||||
"minLength": 1,
|
||||
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "status of the condition, one of True, False, Unknown.",
|
||||
"enum": [
|
||||
"True",
|
||||
"False",
|
||||
"Unknown"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
|
||||
"maxLength": 316,
|
||||
"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])$",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"lastTransitionTime",
|
||||
"message",
|
||||
"reason",
|
||||
"status",
|
||||
"type"
|
||||
],
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-map-keys": [
|
||||
"type"
|
||||
],
|
||||
"x-kubernetes-list-type": "map"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"metadata",
|
||||
"spec"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
Reference in New Issue
Block a user