blob: 0b1bc6e206db75dfe4a08b9302e76df8732b977e [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
gio8c942d22024-07-17 13:43:02 +040016icon: """
17<svg width='50px' height='50px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 39.68503937 35.84897203'>
18 <defs>
19 <style>
20 .cls-1 {
21 fill: currentColor;
22 }
23
24 .cls-2 {
25 fill: none;
26 stroke: #3a3a3a;
27 stroke-miterlimit: 10;
28 stroke-width: .98133445px;
29 }
30 </style>
31 </defs>
32 <rect class='cls-2' x='-9.97439025' y='-11.89242392' width='59.63381987' height='59.63381987'/>
33 <g>
34 <path class='cls-1' d='m8.33392163,35.84897203H.66139092c-.36534918,0-.66139092-.29623977-.66139092-.66139092v-7.67213467c0-.36515115.29604174-.66139092.66139092-.66139092h7.67253071c.36534918,0,.66139092.29623977.66139092.66139092v7.67213467c0,.36515115-.29604174.66139092-.66139092.66139092Zm-7.01113979-1.32278184h6.34974887v-6.34935283H1.32278184v6.34935283Zm18.51973785-6.34935283c-.36534918,0-.66139092-.29623977-.66139092-.66139092v-14.68367051H4.49765628c-.36534918,0-.66139092-.29623977-.66139092-.66139092V.66139092c0-.36515115.29604174-.66139092.66139092-.66139092h30.68972682c.36534918,0,.66139092.29623977.66139092.66139092v11.50899409c0,.36515115-.29604174.66139092-.66139092.66139092h-14.68347249v14.68367051c0,.36515115-.29604174.66139092-.66139092.66139092Zm0-16.66784327h14.68347249V1.32278184H5.1590472v10.18621225h14.68347249Z'/>
35 <path class='cls-1' d='m39.02364845,35.84897203h-7.67253071c-.36534918,0-.66139092-.29623977-.66139092-.66139092v-7.67213467c0-.36515115.29604174-.66139092.66139092-.66139092h3.17487444v-6.35014492H5.1590472v7.01153584c0,.36515115-.29604174.66139092-.66139092.66139092s-.66139092-.29623977-.66139092-.66139092v-7.67292676c0-.36515115.29604174-.66139092.66139092-.66139092h30.68972682c.36534918,0,.66139092.29623977.66139092.66139092v7.01153584h3.17487444c.36534918,0,.66139092.29623977.66139092.66139092v7.67213467c0,.36515115-.29604174.66139092-.66139092.66139092Zm-7.01113979-1.32278184h6.34974887v-6.34935283h-6.34974887v6.34935283Zm-8.33372361,1.32278184h-7.67253071c-.36534918,0-.66139092-.29623977-.66139092-.66139092v-7.67213467c0-.36515115.29604174-.66139092.66139092-.66139092h7.67253071c.36534918,0,.66139092.29623977.66139092.66139092v7.67213467c0,.36515115-.29604174.66139092-.66139092.66139092Zm-7.01113979-1.32278184h6.34974887v-6.34935283h-6.34974887v6.34935283ZM12.16998897,7.07727889h-1.91803367c-.36534918,0-.66139092-.29623977-.66139092-.66139092s.29604174-.66139092.66139092-.66139092h1.91803367c.36534918,0,.66139092.29623977.66139092.66139092s-.29604174.66139092-.66139092.66139092Z'/>
36 </g>
37</svg>"""
giocb34ad22024-07-11 08:01:13 +040038
39charts: {
gio7841f4f2024-07-26 19:53:49 +040040 "certificate-issuer": {
giocb34ad22024-07-11 08:01:13 +040041 kind: "GitRepository"
gio9877f292024-08-17 15:11:15 +040042 address: "https://code.v1.dodo.cloud/helm-charts"
giocb34ad22024-07-11 08:01:13 +040043 branch: "main"
44 path: "charts/certificate-issuer-public"
45 }
46}
47
48helm: {
gio7841f4f2024-07-26 19:53:49 +040049 "certificate-issuer": {
gio785d8bb2024-07-31 17:47:07 +040050 chart: charts["certificate-issuer"]
giocb34ad22024-07-11 08:01:13 +040051 dependsOn: [{
52 name: "ingress-nginx"
53 namespace: "\(global.namespacePrefix)ingress-private"
54 }]
55 values: {
56 issuer: {
57 name: input.name
58 server: "https://acme-v02.api.letsencrypt.org/directory"
giocb34ad22024-07-11 08:01:13 +040059 domain: input.domain
60 contactEmail: global.contactEmail
gio7841f4f2024-07-26 19:53:49 +040061 ingressClass: networks.public.ingressClass
giocb34ad22024-07-11 08:01:13 +040062 }
63 }
64 }
65}
gio636d1302024-08-01 09:17:28 +040066
67help: [{
68 title: "DNS"
69 _records: [for ip in global.nameserverIP { "* 10800 IN A \(ip)" }]
70 _allRecords: strings.Join(_records, "<br>")
71 contents: """
72 Publish following DNS records using \(input.domain) Domain Name Registrar<br><br>
73 \(_allRecords)
74 """
75}]