kubernetes-models
Version:
21 lines (20 loc) • 731 B
JavaScript
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base";
import { addSchema } from "../_schemas/IoK8sApiCoreV1Binding.mjs";
/**
* Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.
* @deprecated
*/
export class Binding extends Model {
constructor(data) {
super({
apiVersion: Binding.apiVersion,
kind: Binding.kind,
...data
});
}
}
Binding.apiVersion = "v1";
Binding.kind = "Binding";
Binding.is = createTypeMetaGuard(Binding);
setSchema(Binding, "io.k8s.api.core.v1.Binding", addSchema);
export { Binding as IoK8sApiCoreV1Binding };