blob: 07bc41ebc9445c2e58c1b03506efdf2ddaf23ed9 [file] [log] [blame]
Davit Tabidze56f86a42024-04-09 19:15:25 +04001import (
2 "encoding/base64"
3)
4
Davit Tabidze207ce082024-04-09 19:15:25 +04005input: {
Davit Tabidze56f86a42024-04-09 19:15:25 +04006 repoAddr: string
7 sshPrivateKey: string
Davit Tabidze207ce082024-04-09 19:15:25 +04008}
9
10_subdomain: "launcher"
Davit Tabidze56f86a42024-04-09 19:15:25 +040011_domain: "\(_subdomain).\(networks.public.domain)"
gio09a3e5b2024-04-26 14:11:06 +040012url: "https://\(_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
25 network: networks.public
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: {
45 chart: "charts/launcher"
46 sourceRef: {
47 kind: "GitRepository"
48 name: "pcloud"
49 namespace: global.id
50 }
51 }
52}
53
54helm: {
55 launcher: {
56 chart: charts.launcher
57 values: {
58 image: {
59 repository: images.launcher.fullName
60 tag: images.launcher.tag
61 pullPolicy: images.launcher.pullPolicy
62 }
63 portName: _httpPortName
Davit Tabidze56f86a42024-04-09 19:15:25 +040064 repoAddr: input.repoAddr
65 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
Davit Tabidze207ce082024-04-09 19:15:25 +040066 logoutUrl: "https://accounts-ui.\(global.domain)/logout"
gio09a3e5b2024-04-26 14:11:06 +040067 repoAddr: input.repoAddr
68 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
Davit Tabidze207ce082024-04-09 19:15:25 +040069 }
70 }
71}