| import ( |
| "encoding/base64" |
| ) |
| |
| input: { |
| network: #Network |
| repoAddr: string |
| sshPrivateKey: string |
| } |
| |
| _subdomain: "launcher" |
| _domain: "\(_subdomain).\(input.network.domain)" |
| |
| name: "Launcher" |
| namespace: "launcher" |
| readme: "App Launcher application will be installed on Private or Public network and be accessible at https://\(_domain)" |
| description: "The application is a App launcher, designed to run all accessible applications. Can be configured to be reachable only from private network or publicly." |
| icon: "<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 48 48'><path fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' d='M42.5 23.075L26.062 7.525a3 3 0 0 0-4.124 0L5.5 23.075m5.86 1.54v14.68a2 2 0 0 0 2 2h7.14v-9.5h7v9.5h7.14a2 2 0 0 0 2-2v-14.68'/></svg>" |
| |
| _webPort: 8080 |
| |
| out: { |
| ingress: { |
| launcher: { |
| auth: enabled: true |
| network: input.network |
| subdomain: _subdomain |
| service: { |
| name: "launcher" |
| port: _webPort |
| } |
| } |
| } |
| |
| images: { |
| launcher: { |
| repository: "giolekva" |
| name: "pcloud-installer" |
| tag: "latest" |
| pullPolicy: "Always" |
| } |
| } |
| |
| charts: { |
| launcher: { |
| kind: "GitRepository" |
| address: "https://code.v1.dodo.cloud/helm-charts" |
| branch: "main" |
| path: "charts/launcher" |
| } |
| } |
| |
| helm: { |
| launcher: { |
| chart: charts.launcher |
| values: { |
| image: { |
| repository: images.launcher.fullName |
| tag: images.launcher.tag |
| pullPolicy: images.launcher.pullPolicy |
| } |
| port: _webPort |
| repoAddr: input.repoAddr |
| sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| logoutUrl: "https://accounts-ui.\(networks.public.domain)/logout" |
| repoAddr: input.repoAddr |
| sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| } |
| } |
| } |
| } |