blob: a7293d54d96edd687319f165aacd3c10d2e40b2f [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."
Giorgi Lekveishvilib4fcaa22024-03-13 16:34:49 +040014icon: "<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 +040015
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040016_httpPortName: "http"
17
gio1de49582024-04-21 08:33:57 +040018ingress: {
19 "url-shorteners": {
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040020 auth: input.auth
21 network: input.network
22 subdomain: input.subdomain
gio1de49582024-04-21 08:33:57 +040023 service: {
24 name: "url-shortener"
25 port: name: _httpPortName
26 }
Giorgi Lekveishvili67383962024-03-22 19:27:34 +040027 }
28}
29
gio1de49582024-04-21 08:33:57 +040030images: {
DTabidze09935812024-03-13 13:47:39 +040031 urlShortener: {
32 repository: "giolekva"
33 name: "url-shortener"
34 tag: "latest"
35 pullPolicy: "Always"
36 }
37}
38
gio1de49582024-04-21 08:33:57 +040039charts: {
DTabidze09935812024-03-13 13:47:39 +040040 urlShortener: {
giof8843412024-05-22 16:38:05 +040041 kind: "GitRepository"
42 address: "https://github.com/giolekva/pcloud.git"
43 branch: "main"
44 path: "charts/url-shortener"
DTabidze09935812024-03-13 13:47:39 +040045 }
46}
47
gio1de49582024-04-21 08:33:57 +040048helm: {
DTabidze09935812024-03-13 13:47:39 +040049 "url-shortener": {
Giorgi Lekveishvilib4fcaa22024-03-13 16:34:49 +040050 chart: charts.urlShortener
giof9f0bee2024-06-11 20:10:05 +040051 info: "Installing server"
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}