(mounts: ApplicationNested["mounts"])
| 638 | }; |
| 639 | |
| 640 | export const generateBindMounts = (mounts: ApplicationNested["mounts"]) => { |
| 641 | if (!mounts || mounts.length === 0) { |
| 642 | return []; |
| 643 | } |
| 644 | |
| 645 | return mounts |
| 646 | .filter((mount) => mount.type === "bind") |
| 647 | .map((mount) => ({ |
| 648 | Type: "bind" as const, |
| 649 | Source: mount.hostPath || "", |
| 650 | Target: mount.mountPath, |
| 651 | })); |
| 652 | }; |
| 653 | |
| 654 | export const generateFileMounts = ( |
| 655 | appName: string, |
no outgoing calls
no test coverage detected