UNPKG

kubernetes-models

Version:
32 lines (31 loc) 948 B
import { register } from "@kubernetes-models/validate"; import { addSchema as IoK8sApimachineryPkgUtilIntstrIntOrString } from "@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgUtilIntstrIntOrString"; const schema = { "properties": { "maxSurge": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#" }, { "type": "null" } ] }, "maxUnavailable": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.util.intstr.IntOrString#" }, { "type": "null" } ] } }, "type": "object" }; export function addSchema() { IoK8sApimachineryPkgUtilIntstrIntOrString(); register("io.k8s.api.apps.v1.RollingUpdateDaemonSet", schema); }