blob: a6e95abfce765704e5acd2190a5dc267ad823341 [file] [log] [blame]
DTabidze09935812024-03-13 13:47:39 +04001input: {
2 network: #Network
3 subdomain: string
Giorgi Lekveishvilia09fad72024-03-21 15:24:35 +04004 auth: #Auth
DTabidze09935812024-03-13 13:47:39 +04005}
6
7_domain: "\(input.subdomain).\(input.network.domain)"
8
9name: "url-shortener"
10namespace: "app-url-shortener"
11readme: "URL shortener application will be installed on \(input.network.name) network and be accessible at https://\(_domain)"
12description: "Provides URL shortening service. Can be configured to be reachable only from private network or publicly."
Giorgi Lekveishvilib4fcaa22024-03-13 16:34:49 +040013icon: "<svg xmlns='http://www.w3.org/2000/svg' width='40.63' height='50' viewBox='0 0 13 16'><circle cx='2' cy='10' r='1' fill='currentColor'/><circle cx='2' cy='6' r='1' fill='currentColor'/><path fill='currentColor' d='M4.5 14c-.06 0-.11 0-.17-.03a.501.501 0 0 1-.3-.64l4-11a.501.501 0 0 1 .94.34l-4 11c-.07.2-.27.33-.47.33m3 0c-.06 0-.11 0-.17-.03a.501.501 0 0 1-.3-.64l4-11a.501.501 0 0 1 .94.34l-4 11c-.07.2-.27.33-.47.33'/></svg>"
DTabidze09935812024-03-13 13:47:39 +040014
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040015_httpPortName: "http"
16
17_ingressWithAuthProxy: _IngressWithAuthProxy & {
18 inp: {
19 auth: input.auth
20 network: input.network
21 subdomain: input.subdomain
22 serviceName: "url-shortener"
23 port: name: _httpPortName
24 }
25}
26
27images: _ingressWithAuthProxy.out.images & {
DTabidze09935812024-03-13 13:47:39 +040028 urlShortener: {
29 repository: "giolekva"
30 name: "url-shortener"
31 tag: "latest"
32 pullPolicy: "Always"
33 }
34}
35
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040036charts: _ingressWithAuthProxy.out.charts & {
DTabidze09935812024-03-13 13:47:39 +040037 urlShortener: {
38 chart: "charts/url-shortener"
39 sourceRef: {
40 kind: "GitRepository"
41 name: "pcloud"
42 namespace: global.id
43 }
44 }
45}
46
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040047helm: _ingressWithAuthProxy.out.helm & {
DTabidze09935812024-03-13 13:47:39 +040048 "url-shortener": {
Giorgi Lekveishvilib4fcaa22024-03-13 16:34:49 +040049 chart: charts.urlShortener
DTabidze09935812024-03-13 13:47:39 +040050 values: {
DTabidze09935812024-03-13 13:47:39 +040051 storage: {
52 size: "1Gi"
53 }
54 image: {
55 repository: images.urlShortener.fullName
56 tag: images.urlShortener.tag
57 pullPolicy: images.urlShortener.pullPolicy
58 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040059 portName: _httpPortName
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040060 requireAuth: input.auth.enabled
DTabidze09935812024-03-13 13:47:39 +040061 }
62 }
DTabidze09935812024-03-13 13:47:39 +040063}