blob: 8e9a179589b7fa7fd8380715f549a003d0be553e [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)"
8
gio44f621b2024-04-29 09:44:38 +04009name: "URL Shortener"
DTabidze09935812024-03-13 13:47:39 +040010namespace: "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
gio1de49582024-04-21 08:33:57 +040017ingress: {
18 "url-shorteners": {
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040019 auth: input.auth
20 network: input.network
21 subdomain: input.subdomain
gio1de49582024-04-21 08:33:57 +040022 service: {
23 name: "url-shortener"
24 port: name: _httpPortName
25 }
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040026 }
27}
28
gio1de49582024-04-21 08:33:57 +040029images: {
DTabidze09935812024-03-13 13:47:39 +040030 urlShortener: {
31 repository: "giolekva"
32 name: "url-shortener"
33 tag: "latest"
34 pullPolicy: "Always"
35 }
36}
37
gio1de49582024-04-21 08:33:57 +040038charts: {
DTabidze09935812024-03-13 13:47:39 +040039 urlShortener: {
40 chart: "charts/url-shortener"
41 sourceRef: {
42 kind: "GitRepository"
43 name: "pcloud"
44 namespace: global.id
45 }
46 }
47}
48
gio1de49582024-04-21 08:33:57 +040049helm: {
DTabidze09935812024-03-13 13:47:39 +040050 "url-shortener": {
Giorgi Lekveishvilib4fcaa22024-03-13 16:34:49 +040051 chart: charts.urlShortener
DTabidze09935812024-03-13 13:47:39 +040052 values: {
DTabidze09935812024-03-13 13:47:39 +040053 storage: {
54 size: "1Gi"
55 }
56 image: {
57 repository: images.urlShortener.fullName
58 tag: images.urlShortener.tag
59 pullPolicy: images.urlShortener.pullPolicy
60 }
Giorgi Lekveishvili0ba5e402024-03-20 15:56:30 +040061 portName: _httpPortName
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040062 requireAuth: input.auth.enabled
DTabidze09935812024-03-13 13:47:39 +040063 }
64 }
DTabidze09935812024-03-13 13:47:39 +040065}