| Giorgi Lekveishvili | e009a5d | 2024-01-05 14:10:11 +0400 | [diff] [blame] | 1 | import ( |
| 2 | "encoding/base64" |
| 3 | ) |
| 4 | |
| 5 | input: { |
| 6 | repoAddr: string |
| 7 | sshPrivateKey: string |
| 8 | createAccountAddr: string |
| 9 | } |
| 10 | |
| 11 | images: { |
| 12 | welcome: { |
| 13 | repository: "giolekva" |
| 14 | name: "pcloud-installer" |
| 15 | tag: "latest" |
| 16 | pullPolicy: "Always" |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | charts: { |
| 21 | welcome: { |
| 22 | chart: "charts/welcome" |
| 23 | sourceRef: { |
| 24 | kind: "GitRepository" |
| 25 | name: "pcloud" |
| 26 | namespace: global.id |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | helm: { |
| 32 | welcome: { |
| 33 | chart: charts.welcome |
| 34 | values: { |
| 35 | repoAddr: input.repoAddr |
| 36 | sshPrivateKey: base64.Encode(null, input.sshPrivateKey) |
| 37 | createAccountAddr: "http://api.\(global.namespacePrefix)core-auth.svc.cluster.local/identities" |
| 38 | ingress: { |
| 39 | className: _ingressPublic |
| 40 | domain: "welcome.\(global.domain)" |
| 41 | certificateIssuer: _issuerPublic |
| 42 | } |
| 43 | clusterRoleName: "\(global.id)-welcome" |
| 44 | image: { |
| 45 | repository: images.welcome.fullName |
| 46 | tag: images.welcome.tag |
| 47 | pullPolicy: images.welcome.pullPolicy |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | } |