blob: 26f3287927844f058dbd10eea66ad46b29d3facb [file] [log] [blame]
DTabidze09935812024-03-13 13:47:39 +04001input: {
gio44f621b2024-04-29 09:44:38 +04002 network: #Network @name(Network)
3 subdomain: string @name(Subdomain)
4 auth: #Auth @name(Authentication)
DTabidze09935812024-03-13 13:47:39 +04005}
6
7_domain: "\(input.subdomain).\(input.network.domain)"
gio09a3e5b2024-04-26 14:11:06 +04008url: "https://\(_domain)"
DTabidze09935812024-03-13 13:47:39 +04009
gio44f621b2024-04-29 09:44:38 +040010name: "URL Shortener"
DTabidze09935812024-03-13 13:47:39 +040011namespace: "app-url-shortener"
12readme: "URL shortener application will be installed on \(input.network.name) network and be accessible at https://\(_domain)"
13description: "Provides URL shortening service. Can be configured to be reachable only from private network or publicly."
gio8c942d22024-07-17 13:43:02 +040014icon: """
15<svg width='50px' height='50px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36.43807123 39.68503937'>
16 <defs>
17 <style>
18 .cls-1 {
19 fill: currentColor;
20 }
21
22 .cls-2 {
23 fill: none;
24 stroke: #3a3a3a;
25 stroke-miterlimit: 10;
26 stroke-width: .98133445px;
27 }
28 </style>
29 </defs>
30 <rect class='cls-2' x='-11.59787432' y='-9.97439025' width='59.63381987' height='59.63381987'/>
31 <g>
32 <circle class='cls-1' cx='3.31578123' cy='26.42191445' r='3.31578123'/>
33 <circle class='cls-1' cx='3.31578123' cy='13.15878954' r='3.31578123'/>
34 <path class='cls-1' d='m11.6052343,39.68503937c-.19894668,0-.36473638,0-.56368306-.09947255-.85909349-.31306169-1.30368349-1.26152142-.994735-2.12210113L23.30994116.98987217c.37099907-.83910142,1.3519786-1.21857512,2.19107766-.84757764.75807463.33517241,1.1530841,1.1778629.92575531,1.97494297l-13.26312492,36.47359431c-.23210526.66315561-.89526087,1.09420755-1.55841648,1.09420755m9.94734369,0c-.19894668,0-.36473638,0-.56368306-.09947255-.85909349-.31306169-1.3036827-1.26152142-.994735-2.12210113L33.25728168.98987217c.37099907-.83910142,1.3519786-1.21857512,2.19107766-.84757764.75807463.33517241,1.1530841,1.1778629.92575531,1.97494297l-13.26312492,36.47359431c-.23210526.66315561-.89526087,1.09420755-1.55841648,1.09420755'/>
35 </g>
36</svg>"""
DTabidze09935812024-03-13 13:47:39 +040037
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040038_httpPortName: "http"
39
gio1de49582024-04-21 08:33:57 +040040ingress: {
41 "url-shorteners": {
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040042 auth: input.auth
43 network: input.network
44 subdomain: input.subdomain
gio1de49582024-04-21 08:33:57 +040045 service: {
46 name: "url-shortener"
47 port: name: _httpPortName
48 }
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040049 }
50}
51
gio1de49582024-04-21 08:33:57 +040052images: {
DTabidze09935812024-03-13 13:47:39 +040053 urlShortener: {
54 repository: "giolekva"
55 name: "url-shortener"
56 tag: "latest"
57 pullPolicy: "Always"
58 }
59}
60
gio1de49582024-04-21 08:33:57 +040061charts: {
DTabidze09935812024-03-13 13:47:39 +040062 urlShortener: {
giof8843412024-05-22 16:38:05 +040063 kind: "GitRepository"
gio9877f292024-08-17 15:11:15 +040064 address: "https://code.v1.dodo.cloud/helm-charts"
giof8843412024-05-22 16:38:05 +040065 branch: "main"
66 path: "charts/url-shortener"
DTabidze09935812024-03-13 13:47:39 +040067 }
68}
69
gio1de49582024-04-21 08:33:57 +040070helm: {
DTabidze09935812024-03-13 13:47:39 +040071 "url-shortener": {
Giorgi Lekveishvilib4fcaa22024-03-13 16:34:49 +040072 chart: charts.urlShortener
giof9f0bee2024-06-11 20:10:05 +040073 info: "Installing server"
DTabidze09935812024-03-13 13:47:39 +040074 values: {
DTabidze09935812024-03-13 13:47:39 +040075 storage: {
76 size: "1Gi"
77 }
78 image: {
79 repository: images.urlShortener.fullName
80 tag: images.urlShortener.tag
81 pullPolicy: images.urlShortener.pullPolicy
82 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040083 portName: _httpPortName
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040084 requireAuth: input.auth.enabled
DTabidze09935812024-03-13 13:47:39 +040085 }
86 }
DTabidze09935812024-03-13 13:47:39 +040087}