blob: 78f99e606fa536bcbae650604482dfcd4fd5178f [file] [log] [blame]
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +04001import (
2 "encoding/base64"
3)
4
5input: {
gio9bd87ca2025-04-20 08:05:34 +04006 repoIP: string
7 repoPort: number
8 repoName: string
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +04009 sshPrivateKey: string
10}
11
gio9bd87ca2025-04-20 08:05:34 +040012name: "env-manager"
Giorgi Lekveishvili03d6f4b2024-03-08 13:05:21 +040013namespace: "env-manager"
14
gio7fbd4ad2024-08-27 10:06:39 +040015out: {
16 images: {
17 envManager: {
18 repository: "giolekva"
gio9bd87ca2025-04-20 08:05:34 +040019 name: "pcloud-installer"
20 tag: "latest"
gio7fbd4ad2024-08-27 10:06:39 +040021 pullPolicy: "Always"
22 }
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040023 }
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040024
gio7fbd4ad2024-08-27 10:06:39 +040025 charts: {
26 envManager: {
gio9bd87ca2025-04-20 08:05:34 +040027 kind: "GitRepository"
gio7fbd4ad2024-08-27 10:06:39 +040028 address: "https://code.v1.dodo.cloud/helm-charts"
gio9bd87ca2025-04-20 08:05:34 +040029 branch: "main"
30 path: "charts/env-manager"
gio7fbd4ad2024-08-27 10:06:39 +040031 }
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040032 }
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040033
gio7fbd4ad2024-08-27 10:06:39 +040034 helm: {
35 "env-manager": {
36 chart: charts.envManager
37 values: {
gio9bd87ca2025-04-20 08:05:34 +040038 repoIP: input.repoIP
39 repoPort: input.repoPort
40 repoName: input.repoName
41 sshPrivateKey: base64.Encode(null, input.sshPrivateKey)
gio7fbd4ad2024-08-27 10:06:39 +040042 clusterRoleName: "\(global.pcloudEnvName)-env-manager"
43 image: {
44 repository: images.envManager.fullName
gio9bd87ca2025-04-20 08:05:34 +040045 tag: images.envManager.tag
gio7fbd4ad2024-08-27 10:06:39 +040046 pullPolicy: images.envManager.pullPolicy
47 }
Giorgi Lekveishvilie009a5d2024-01-05 14:10:11 +040048 }
49 }
50 }
51}