This commit is contained in:
2026-07-02 15:44:18 +01:00
parent 3a8c946438
commit 717d09d1f3
14 changed files with 1404 additions and 42 deletions
@@ -65,8 +65,6 @@
"stabilizationWindowSeconds": {
"description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be\nconsidered while scaling up or scaling down.\nStabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).\nIf not set, use the default values:\n- For scale up: 0 (i.e. no stabilization is done).\n- For scale down: 300 (i.e. the stabilization window is 300 seconds long).",
"format": "int32",
"maximum": 3600,
"minimum": 0,
"type": "integer"
},
"tolerance": {
@@ -78,7 +76,7 @@
"type": "string"
}
],
"description": "tolerance is the tolerance on the ratio between the current and desired\nmetric value under which no updates are made to the desired number of\nreplicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not\nset, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi,\nand scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be\ntriggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an alpha field and requires enabling the HPAConfigurableTolerance\nfeature gate.",
"description": "tolerance is the tolerance on the ratio between the current and desired\nmetric value under which no updates are made to the desired number of\nreplicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not\nset, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi,\nand scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be\ntriggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an beta field and requires the HPAConfigurableTolerance feature\ngate to be enabled.",
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
}
@@ -127,8 +125,6 @@
"stabilizationWindowSeconds": {
"description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be\nconsidered while scaling up or scaling down.\nStabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).\nIf not set, use the default values:\n- For scale up: 0 (i.e. no stabilization is done).\n- For scale down: 300 (i.e. the stabilization window is 300 seconds long).",
"format": "int32",
"maximum": 3600,
"minimum": 0,
"type": "integer"
},
"tolerance": {
@@ -140,7 +136,7 @@
"type": "string"
}
],
"description": "tolerance is the tolerance on the ratio between the current and desired\nmetric value under which no updates are made to the desired number of\nreplicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not\nset, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi,\nand scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be\ntriggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an alpha field and requires enabling the HPAConfigurableTolerance\nfeature gate.",
"description": "tolerance is the tolerance on the ratio between the current and desired\nmetric value under which no updates are made to the desired number of\nreplicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not\nset, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi,\nand scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be\ntriggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an beta field and requires the HPAConfigurableTolerance feature\ngate to be enabled.",
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
}
@@ -192,6 +188,7 @@
},
"cooldownPeriod": {
"format": "int32",
"minimum": 0,
"type": "integer"
},
"fallback": {
@@ -203,16 +200,19 @@
"static",
"currentReplicas",
"currentReplicasIfHigher",
"currentReplicasIfLower"
"currentReplicasIfLower",
"scalingModifiers"
],
"type": "string"
},
"failureThreshold": {
"format": "int32",
"minimum": 0,
"type": "integer"
},
"replicas": {
"format": "int32",
"minimum": 0,
"type": "integer"
}
},
@@ -225,22 +225,27 @@
},
"idleReplicaCount": {
"format": "int32",
"minimum": 0,
"type": "integer"
},
"initialCooldownPeriod": {
"format": "int32",
"minimum": 0,
"type": "integer"
},
"maxReplicaCount": {
"format": "int32",
"minimum": 1,
"type": "integer"
},
"minReplicaCount": {
"format": "int32",
"minimum": 0,
"type": "integer"
},
"pollingInterval": {
"format": "int32",
"minimum": 1,
"type": "integer"
},
"scaleTargetRef": {
@@ -256,6 +261,7 @@
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
}
},
@@ -274,6 +280,10 @@
"properties": {
"kind": {
"description": "Kind of the resource being referred to. Defaults to TriggerAuthentication.",
"enum": [
"TriggerAuthentication",
"ClusterTriggerAuthentication"
],
"type": "string"
},
"name": {
@@ -300,6 +310,7 @@
"type": "string"
},
"type": {
"minLength": 1,
"type": "string"
},
"useCachedMetrics": {
@@ -313,6 +324,7 @@
"type": "object",
"additionalProperties": false
},
"minItems": 1,
"type": "array"
}
},
@@ -321,6 +333,12 @@
"triggers"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "minReplicaCount must be less than or equal to maxReplicaCount",
"rule": "!has(self.minReplicaCount) || self.minReplicaCount <= (has(self.maxReplicaCount) ? self.maxReplicaCount : 100)"
}
],
"additionalProperties": false
},
"status": {