blob: d2b1e2809fcf6c711e906444daeb87137381f1c8 [file] [log] [blame]
gio636d1302024-08-01 09:17:28 +04001import (
2 "strings"
3)
4
giocb34ad22024-07-11 08:01:13 +04005input: {
6 name: string
7 domain: string
8}
9
10images: {}
11
12name: "Network"
13namespace: "ingress-custom"
14readme: "Configure custom public domain"
15description: readme
16icon: "<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 48 48'><g fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'><path d='M4 34h8v8H4zM8 6h32v12H8zm16 28V18'/><path d='M8 34v-8h32v8m-4 0h8v8h-8zm-16 0h8v8h-8zm-6-22h2'/></g></svg>"
17
18charts: {
gio7841f4f2024-07-26 19:53:49 +040019 "certificate-issuer": {
giocb34ad22024-07-11 08:01:13 +040020 kind: "GitRepository"
21 address: "https://github.com/giolekva/pcloud.git"
22 branch: "main"
23 path: "charts/certificate-issuer-public"
24 }
25}
26
27helm: {
gio7841f4f2024-07-26 19:53:49 +040028 "certificate-issuer": {
gio785d8bb2024-07-31 17:47:07 +040029 chart: charts["certificate-issuer"]
giocb34ad22024-07-11 08:01:13 +040030 dependsOn: [{
31 name: "ingress-nginx"
32 namespace: "\(global.namespacePrefix)ingress-private"
33 }]
34 values: {
35 issuer: {
36 name: input.name
37 server: "https://acme-v02.api.letsencrypt.org/directory"
giocb34ad22024-07-11 08:01:13 +040038 domain: input.domain
39 contactEmail: global.contactEmail
gio7841f4f2024-07-26 19:53:49 +040040 ingressClass: networks.public.ingressClass
giocb34ad22024-07-11 08:01:13 +040041 }
42 }
43 }
44}
gio636d1302024-08-01 09:17:28 +040045
46help: [{
47 title: "DNS"
48 _records: [for ip in global.nameserverIP { "* 10800 IN A \(ip)" }]
49 _allRecords: strings.Join(_records, "<br>")
50 contents: """
51 Publish following DNS records using \(input.domain) Domain Name Registrar<br><br>
52 \(_allRecords)
53 """
54}]