UNPKG

kubernetes-models

Version:
27 lines (26 loc) 826 B
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgUtilIntstrIntOrString } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgUtilIntstrIntOrString"; const schema = { "properties": { "maxUnavailable": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#" }, { "type": "null" } ] }, "partition": { "format": "int32", "type": "integer", "nullable": true } }, "type": "object" }; export function addSchema() { IoK8sApimachineryPkgUtilIntstrIntOrString(); register("io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", schema); }