blob: 4574b7271496fb01a6b49f362343284bd6cd9400 [file] [log] [blame]
Davit Tabidze56f86a42024-04-09 19:15:25 +04001import (
2 "encoding/base64"
3)
4
Davit Tabidze207ce082024-04-09 19:15:25 +04005input: {
gio7841f4f2024-07-26 19:53:49 +04006 network: #Network
Davit Tabidze56f86a42024-04-09 19:15:25 +04007 repoAddr: string
8 sshPrivateKey: string
Davit Tabidze207ce082024-04-09 19:15:25 +04009}
10
11_subdomain: "launcher"
gio7841f4f2024-07-26 19:53:49 +040012_domain: "\(_subdomain).\(input.network.domain)"
Davit Tabidze207ce082024-04-09 19:15:25 +040013
gio44f621b2024-04-29 09:44:38 +040014name: "Launcher"
gio09a3e5b2024-04-26 14:11:06 +040015namespace: "launcher"
Davit Tabidze207ce082024-04-09 19:15:25 +040016readme: "App Launcher application will be installed on Private or Public network and be accessible at https://\(_domain)"
17description: "The application is a App launcher, designed to run all accessible applications. Can be configured to be reachable only from private network or publicly."
giod809aa72024-04-26 14:11:06 +040018icon: "<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>"
Davit Tabidze207ce082024-04-09 19:15:25 +040019
20_httpPortName: "http"
21
22ingress: {
23 launcher: {
Davit Tabidze56f86a42024-04-09 19:15:25 +040024 auth: enabled: true
gio7841f4f2024-07-26 19:53:49 +040025 network: input.network
Davit Tabidze207ce082024-04-09 19:15:25 +040026 subdomain: _subdomain
27 service: {
28 name: "launcher"
29 port: name: _httpPortName
30 }
31 }
32}
33
34images: {
35 launcher: {
36 repository: "giolekva"
gio09a3e5b2024-04-26 14:11:06 +040037 name: "pcloud-installer"
Davit Tabidze207ce082024-04-09 19:15:25 +040038 tag: "latest"
39 pullPolicy: "Always"
40 }
41}
42
43charts: {
44 launcher: {
giof8843412024-05-22 16:38:05 +040045 kind: "GitRepository"
gio9877f292024-08-17 15:11:15 +040046 address: "https://code.v1.dodo.cloud/helm-charts"
giof8843412024-05-22 16:38:05 +040047 branch: "main"
48 path: "charts/launcher"
Davit Tabidze207ce082024-04-09 19:15:25 +040049 }
50}
51
52helm: {
53 launcher: {
54 chart: charts.launcher
55 values: {
56 image: {
57 repository: images.launcher.fullName
58 tag: images.launcher.tag
59 pullPolicy: images.launcher.pullPolicy
60 }
61 portName: _httpPortName
Davit Tabidze56f86a42024-04-09 19:15:25 +040062 repoAddr: input.repoAddr
63 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
gio7841f4f2024-07-26 19:53:49 +040064 logoutUrl: "https://accounts-ui.\(networks.public.domain)/logout"
gio09a3e5b2024-04-26 14:11:06 +040065 repoAddr: input.repoAddr
66 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
Davit Tabidze207ce082024-04-09 19:15:25 +040067 }
68 }
69}