kubernetes-models
Version:
32 lines (31 loc) • 896 B
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiAutoscalingV2HPAScalingRules } from "./IoK8sApiAutoscalingV2HPAScalingRules.mjs";
const schema = {
"properties": {
"scaleDown": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.HPAScalingRules#"
},
{
"type": "null"
}
]
},
"scaleUp": {
"oneOf": [
{
"$ref": "io.k8s.api.autoscaling.v2.HPAScalingRules#"
},
{
"type": "null"
}
]
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiAutoscalingV2HPAScalingRules();
register("io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior", schema);
}