blob: 8aabbd5933325d31729a8d54a9e35666701baa83 [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)"
Davit Tabidze207ce082024-04-09 19:15:25 +040012
gio44f621b2024-04-29 09:44:38 +040013name: "Launcher"
gio09a3e5b2024-04-26 14:11:06 +040014namespace: "launcher"
Davit Tabidze207ce082024-04-09 19:15:25 +040015readme: "App Launcher application will be installed on Private or Public network and be accessible at https://\(_domain)"
16description: "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 +040017icon: "<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 +040018
19_httpPortName: "http"
20
21ingress: {
22 launcher: {
Davit Tabidze56f86a42024-04-09 19:15:25 +040023 auth: enabled: true
24 network: networks.public
Davit Tabidze207ce082024-04-09 19:15:25 +040025 subdomain: _subdomain
26 service: {
27 name: "launcher"
28 port: name: _httpPortName
29 }
30 }
31}
32
33images: {
34 launcher: {
35 repository: "giolekva"
gio09a3e5b2024-04-26 14:11:06 +040036 name: "pcloud-installer"
Davit Tabidze207ce082024-04-09 19:15:25 +040037 tag: "latest"
38 pullPolicy: "Always"
39 }
40}
41
42charts: {
43 launcher: {
44 chart: "charts/launcher"
45 sourceRef: {
46 kind: "GitRepository"
47 name: "pcloud"
48 namespace: global.id
49 }
50 }
51}
52
53helm: {
54 launcher: {
55 chart: charts.launcher
56 values: {
57 image: {
58 repository: images.launcher.fullName
59 tag: images.launcher.tag
60 pullPolicy: images.launcher.pullPolicy
61 }
62 portName: _httpPortName
Davit Tabidze56f86a42024-04-09 19:15:25 +040063 repoAddr: input.repoAddr
64 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
Davit Tabidze207ce082024-04-09 19:15:25 +040065 logoutUrl: "https://accounts-ui.\(global.domain)/logout"
gio09a3e5b2024-04-26 14:11:06 +040066 repoAddr: input.repoAddr
67 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
Davit Tabidze207ce082024-04-09 19:15:25 +040068 }
69 }
70}