k8ts
Version:
Powerful framework for building Kubernetes manifests in TypeScript.
26 lines • 656 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Port = void 0;
class Port {
props;
constructor(props) {
this.props = props;
}
get service() {
return this.props.service;
}
get port() {
return this.props;
}
// TODO: Does this need to resolve ports?
ref() {
return {
kind: "Service",
namespace: this.service.meta.tryGet("namespace"),
name: this.service.meta.get("name"),
port: this.service.ports.get(this.props.name).frontend
};
}
}
exports.Port = Port;
//# sourceMappingURL=service-port.js.map