add cli client for repo

This commit is contained in:
viktorbarzin 2021-03-15 23:32:56 +00:00
parent 143ea1f6ea
commit 70d306d0d2
9 changed files with 339 additions and 0 deletions

View file

@ -22,6 +22,8 @@ variable "oauth_client_secret" {}
variable "webhook_handler_fb_verify_token" {}
variable "webhook_handler_fb_page_token" {}
variable "webhook_handler_fb_app_secret" {}
variable "webhook_handler_git_user" {}
variable "webhook_handler_git_token" {}
resource "null_resource" "core_services" {
# List all the core modules that must be provisioned first
@ -162,6 +164,8 @@ module "webhook_handler" {
fb_verify_token = var.webhook_handler_fb_verify_token
fb_page_token = var.webhook_handler_fb_page_token
fb_app_secret = var.webhook_handler_fb_app_secret
git_user = var.webhook_handler_git_user
git_token = var.webhook_handler_git_token
depends_on = [null_resource.core_services]
}

View file

@ -4,6 +4,8 @@ variable "webhook_secret" {}
variable "fb_verify_token" {}
variable "fb_page_token" {}
variable "fb_app_secret" {}
variable "git_user" {}
variable "git_token" {}
resource "kubernetes_namespace" "webhook-handler" {
metadata {
@ -105,6 +107,14 @@ resource "kubernetes_deployment" "webhook_handler" {
name = "CONFIG"
value = "./chatbot/config/viktorwebservices.yaml"
}
env {
name = "GIT_USER"
value = var.git_user
}
env {
name = "GIT_TOKEN"
value = var.git_token
}
}
}
}