Skip to content

Commit fe5b550

Browse files
feat: move bot-prod to argocd generator (#60)
* feat: move bot-prod to argocd generator * chore: format
1 parent a5a8c74 commit fe5b550

File tree

2 files changed

+23
-38
lines changed

2 files changed

+23
-38
lines changed

argocd-applications.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@ applications:
2020
# info:
2121
# - name: url
2222
# value: https://argoproj.github.io/
23-
bot-prod:
24-
name: bot-prod
25-
namespace: argocd
26-
project: default
27-
source:
28-
repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
29-
targetRevision: HEAD
30-
path: bot-prod
31-
directory:
32-
recurse: true
33-
destination:
34-
server: https://kubernetes.default.svc
35-
namespace: bot-prod
36-
syncPolicy:
37-
automated:
38-
prune: true
39-
selfHeal: true
40-
syncOptions:
41-
- CreateNamespace=false
42-
info:
43-
- name: url
44-
value: https://argoproj.github.io/
23+
# bot-prod:
24+
# name: bot-prod
25+
# namespace: argocd
26+
# project: default
27+
# source:
28+
# repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
29+
# targetRevision: HEAD
30+
# path: bot-prod
31+
# directory:
32+
# recurse: true
33+
# destination:
34+
# server: https://kubernetes.default.svc
35+
# namespace: bot-prod
36+
# syncPolicy:
37+
# automated:
38+
# prune: true
39+
# selfHeal: true
40+
# syncOptions:
41+
# - CreateNamespace=false
42+
# info:
43+
# - name: url
44+
# value: https://argoproj.github.io/
4545
# bot-mat:
4646
# name: bot-mat
4747
# namespace: argocd

main.tf

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,23 +113,8 @@ module "bot_mod_prod" {
113113
module.mariadb
114114
]
115115

116-
source = "./modules/bots/"
117-
116+
source = "./modules/bots-migration/"
118117
bot_namespace = "bot-prod"
119-
bot_token = data.azurerm_key_vault_secret.prod_mod_bot_token.value
120-
bot_onMessage = "m"
121-
db_database = "polinetwork"
122-
db_host = local.mariadb_internal_ip
123-
db_password = data.azurerm_key_vault_secret.prod_db_password.value
124-
db_user = data.azurerm_key_vault_secret.prod_mod_db_user.value
125-
126-
git_config = true
127-
git_user = "PoliNetworkDev"
128-
git_email = data.azurerm_key_vault_secret.prod_mod_git_email.value
129-
git_password = data.azurerm_key_vault_secret.prod_mod_git_password.value
130-
git_data_repo = "git@github.com:PoliNetworkDev/polinetworkWebsiteData.git"
131-
git_remote_repo = "https://github.com/PoliNetworkOrg/polinetworkWebsiteData.git"
132-
git_path = "./data/polinetworkWebsiteData/"
133118
}
134119

135120
module "bot_mat_migration" {

0 commit comments

Comments
 (0)