UNPKG

k8ts

Version:

Powerful framework for building Kubernetes manifests in TypeScript.

45 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Container_Mount_Device = exports.Container_Mount_Volume = void 0; const default_1 = require("../../../kinds/default"); class Container_Mount_Volume { props; get kind() { return default_1.v1.Pod.Container.VolumeMount._; } constructor(props) { this.props = props; } get volume() { return this.props.volume; } __submanifest__(mountPath) { return { name: this.props.volume.name, mountPath: mountPath, readOnly: this.props.readOnly, subPath: this.props.subPath }; } } exports.Container_Mount_Volume = Container_Mount_Volume; class Container_Mount_Device { props; get kind() { return default_1.v1.Pod.Container.DeviceMount._; } get volume() { return this.props.device; } constructor(props) { this.props = props; } __submanifest__(devicePath) { return { devicePath: devicePath, name: this.props.device.name }; } } exports.Container_Mount_Device = Container_Mount_Device; //# sourceMappingURL=mounts.js.map