kubernetes-models
Version:
20 lines (19 loc) • 1.13 kB
JavaScript
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base";
import { addSchema } from "../../_schemas/IoK8sApiNodeV1beta1RuntimeClass.mjs";
/**
* RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
*/
export class RuntimeClass extends Model {
constructor(data) {
super({
apiVersion: RuntimeClass.apiVersion,
kind: RuntimeClass.kind,
...data
});
}
}
RuntimeClass.apiVersion = "node.k8s.io/v1beta1";
RuntimeClass.kind = "RuntimeClass";
RuntimeClass.is = createTypeMetaGuard(RuntimeClass);
setSchema(RuntimeClass, "io.k8s.api.node.v1beta1.RuntimeClass", addSchema);
export { RuntimeClass as IoK8sApiNodeV1beta1RuntimeClass };