|
| 1 | +{ |
| 2 | + "description": "PodAutoscaler is a Knative abstraction that encapsulates the interface by which Knative\ncomponents instantiate autoscalers. This definition is an abstraction that may be backed\nby multiple definitions. For more information, see the Knative Pluggability presentation:\nhttps://docs.google.com/presentation/d/19vW9HFZ6Puxt31biNZF3uLRejDmu82rxJIk1cWmxF7w/edit", |
| 3 | + "type": "object", |
| 4 | + "properties": { |
| 5 | + "apiVersion": { |
| 6 | + "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", |
| 7 | + "type": "string" |
| 8 | + }, |
| 9 | + "kind": { |
| 10 | + "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", |
| 11 | + "type": "string" |
| 12 | + }, |
| 13 | + "metadata": { |
| 14 | + "type": "object" |
| 15 | + }, |
| 16 | + "spec": { |
| 17 | + "description": "Spec holds the desired state of the PodAutoscaler (from the client).", |
| 18 | + "type": "object", |
| 19 | + "required": [ |
| 20 | + "protocolType", |
| 21 | + "scaleTargetRef" |
| 22 | + ], |
| 23 | + "properties": { |
| 24 | + "containerConcurrency": { |
| 25 | + "description": "ContainerConcurrency specifies the maximum allowed\nin-flight (concurrent) requests per container of the Revision.\nDefaults to `0` which means unlimited concurrency.", |
| 26 | + "type": "integer", |
| 27 | + "format": "int64" |
| 28 | + }, |
| 29 | + "protocolType": { |
| 30 | + "description": "The application-layer protocol. Matches `ProtocolType` inferred from the revision spec.", |
| 31 | + "type": "string" |
| 32 | + }, |
| 33 | + "reachability": { |
| 34 | + "description": "Reachability specifies whether or not the `ScaleTargetRef` can be reached (ie. has a route).\nDefaults to `ReachabilityUnknown`", |
| 35 | + "type": "string" |
| 36 | + }, |
| 37 | + "scaleTargetRef": { |
| 38 | + "description": "ScaleTargetRef defines the /scale-able resource that this PodAutoscaler\nis responsible for quickly right-sizing.", |
| 39 | + "type": "object", |
| 40 | + "properties": { |
| 41 | + "apiVersion": { |
| 42 | + "description": "API version of the referent.", |
| 43 | + "type": "string" |
| 44 | + }, |
| 45 | + "kind": { |
| 46 | + "description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", |
| 47 | + "type": "string" |
| 48 | + }, |
| 49 | + "name": { |
| 50 | + "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", |
| 51 | + "type": "string" |
| 52 | + } |
| 53 | + }, |
| 54 | + "x-kubernetes-map-type": "atomic", |
| 55 | + "additionalProperties": false |
| 56 | + } |
| 57 | + }, |
| 58 | + "additionalProperties": false |
| 59 | + }, |
| 60 | + "status": { |
| 61 | + "description": "Status communicates the observed state of the PodAutoscaler (from the controller).", |
| 62 | + "type": "object", |
| 63 | + "required": [ |
| 64 | + "metricsServiceName", |
| 65 | + "serviceName" |
| 66 | + ], |
| 67 | + "properties": { |
| 68 | + "actualScale": { |
| 69 | + "description": "ActualScale shows the actual number of replicas for the revision.", |
| 70 | + "type": "integer", |
| 71 | + "format": "int32" |
| 72 | + }, |
| 73 | + "annotations": { |
| 74 | + "description": "Annotations is additional Status fields for the Resource to save some\nadditional State as well as convey more information to the user. This is\nroughly akin to Annotations on any k8s resource, just the reconciler conveying\nricher information outwards.", |
| 75 | + "type": "object", |
| 76 | + "additionalProperties": { |
| 77 | + "type": "string" |
| 78 | + } |
| 79 | + }, |
| 80 | + "conditions": { |
| 81 | + "description": "Conditions the latest available observations of a resource's current state.", |
| 82 | + "type": "array", |
| 83 | + "items": { |
| 84 | + "description": "Condition defines a readiness condition for a Knative resource.\nSee: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties", |
| 85 | + "type": "object", |
| 86 | + "required": [ |
| 87 | + "status", |
| 88 | + "type" |
| 89 | + ], |
| 90 | + "properties": { |
| 91 | + "lastTransitionTime": { |
| 92 | + "description": "LastTransitionTime is the last time the condition transitioned from one status to another.\nWe use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic\ndifferences (all other things held constant).", |
| 93 | + "type": "string" |
| 94 | + }, |
| 95 | + "message": { |
| 96 | + "description": "A human readable message indicating details about the transition.", |
| 97 | + "type": "string" |
| 98 | + }, |
| 99 | + "reason": { |
| 100 | + "description": "The reason for the condition's last transition.", |
| 101 | + "type": "string" |
| 102 | + }, |
| 103 | + "severity": { |
| 104 | + "description": "Severity with which to treat failures of this type of condition.\nWhen this is not specified, it defaults to Error.", |
| 105 | + "type": "string" |
| 106 | + }, |
| 107 | + "status": { |
| 108 | + "description": "Status of the condition, one of True, False, Unknown.", |
| 109 | + "type": "string" |
| 110 | + }, |
| 111 | + "type": { |
| 112 | + "description": "Type of condition.", |
| 113 | + "type": "string" |
| 114 | + } |
| 115 | + }, |
| 116 | + "additionalProperties": false |
| 117 | + } |
| 118 | + }, |
| 119 | + "desiredScale": { |
| 120 | + "description": "DesiredScale shows the current desired number of replicas for the revision.", |
| 121 | + "type": "integer", |
| 122 | + "format": "int32" |
| 123 | + }, |
| 124 | + "metricsServiceName": { |
| 125 | + "description": "MetricsServiceName is the K8s Service name that provides revision metrics.\nThe service is managed by the PA object.", |
| 126 | + "type": "string" |
| 127 | + }, |
| 128 | + "observedGeneration": { |
| 129 | + "description": "ObservedGeneration is the 'Generation' of the Service that\nwas last processed by the controller.", |
| 130 | + "type": "integer", |
| 131 | + "format": "int64" |
| 132 | + }, |
| 133 | + "serviceName": { |
| 134 | + "description": "ServiceName is the K8s Service name that serves the revision, scaled by this PA.\nThe service is created and owned by the ServerlessService object owned by this PA.", |
| 135 | + "type": "string" |
| 136 | + } |
| 137 | + }, |
| 138 | + "additionalProperties": false |
| 139 | + } |
| 140 | + } |
| 141 | +} |
0 commit comments