| DTabidze | 0993581 | 2024-03-13 13:47:39 +0400 | [diff] [blame^] | 1 | input: { |
| 2 | network: #Network |
| 3 | subdomain: string |
| 4 | } |
| 5 | |
| 6 | _domain: "\(input.subdomain).\(input.network.domain)" |
| 7 | |
| 8 | name: "url-shortener" |
| 9 | namespace: "app-url-shortener" |
| 10 | readme: "URL shortener application will be installed on \(input.network.name) network and be accessible at https://\(_domain)" |
| 11 | description: "Provides URL shortening service. Can be configured to be reachable only from private network or publicly." |
| 12 | icon: "<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>" |
| 13 | |
| 14 | images: { |
| 15 | urlShortener: { |
| 16 | repository: "giolekva" |
| 17 | name: "url-shortener" |
| 18 | tag: "latest" |
| 19 | pullPolicy: "Always" |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | charts: { |
| 24 | urlShortener: { |
| 25 | chart: "charts/url-shortener" |
| 26 | sourceRef: { |
| 27 | kind: "GitRepository" |
| 28 | name: "pcloud" |
| 29 | namespace: global.id |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | helm: { |
| 35 | "url-shortener": { |
| 36 | chart: charts.url-shortener |
| 37 | values: { |
| 38 | ingressClassName: input.network.ingressClass |
| 39 | certificateIssuer: input.network.certificateIssuer |
| 40 | domain: _domain |
| 41 | storage: { |
| 42 | size: "1Gi" |
| 43 | } |
| 44 | image: { |
| 45 | repository: images.urlShortener.fullName |
| 46 | tag: images.urlShortener.tag |
| 47 | pullPolicy: images.urlShortener.pullPolicy |
| 48 | } |
| 49 | port: 8080 |
| 50 | } |
| 51 | } |
| 52 | } |