blob: 06ac7e175e474a0c15e036bf9b6c3ca9d4038e68 [file] [log] [blame]
input: {
network: #Network @name(Network)
subdomain: string @name(Subdomain)
auth: #Auth @name(Authentication)
}
_domain: "\(input.subdomain).\(input.network.domain)"
url: "https://\(_domain)"
name: "URL Shortener"
namespace: "app-url-shortener"
readme: "URL shortener application will be installed on \(input.network.name) network and be accessible at https://\(_domain)"
description: "Provides URL shortening service. Can be configured to be reachable only from private network or publicly."
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>"
_httpPortName: "http"
ingress: {
"url-shorteners": {
auth: input.auth
network: input.network
subdomain: input.subdomain
service: {
name: "url-shortener"
port: name: _httpPortName
}
}
}
images: {
urlShortener: {
repository: "giolekva"
name: "url-shortener"
tag: "latest"
pullPolicy: "Always"
}
}
charts: {
urlShortener: {
kind: "GitRepository"
address: "https://github.com/giolekva/pcloud.git"
branch: "main"
path: "charts/url-shortener"
}
}
helm: {
"url-shortener": {
chart: charts.urlShortener
values: {
storage: {
size: "1Gi"
}
image: {
repository: images.urlShortener.fullName
tag: images.urlShortener.tag
pullPolicy: images.urlShortener.pullPolicy
}
portName: _httpPortName
requireAuth: input.auth.enabled
}
}
}